Example #1
0
 public bool DeActivate(int id)
 {
     try
     {
         if (id > 0)
         {
             var isSuccess = _departmentServices.ToggleActiveDepartment(id);
         }
     }
     catch (Exception ex)
     {
         throw new ApiDataException(1000, "Department not Deactivate", HttpStatusCode.NotFound);
     }
     return(true);
 }