コード例 #1
0
 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
         });
     }
 }
コード例 #2
0
 public bool Delete(District model)
 {
     return(_districtDAL.Delete(model) > 0);
 }