public Response Delete(int id) { try { districtDAL.Delete(id); return(new Response { Success = true, Message = "District deleted" }); } catch (Exception e) { return(new Response { Success = false, Message = e.Message }); } }
public bool Delete(District model) { return(_districtDAL.Delete(model) > 0); }