BAL.Manager.DistrictManager.deleteById C# (CSharp) Method

deleteById() public method

Managaer method that deletes a specific district enty with id matching id parameter
public deleteById ( int id ) : string
id int Input parameter thats represents specific district id
return string
        public string deleteById(int id)
        {
            if (id <= 0)
            {
                return "Error";
            }
            else
            {
                District a = uOW.DistrictRepo.GetByID(id);
                uOW.DistrictRepo.Delete(a);
                uOW.Save();
                return "Success";
            }
        }