public void DeleteDistrict(DistrictDTO dto) { try { log.Debug(DistrictDTO.FormatDistrictDTO(dto)); R_District t = DistrictDTO.ConvertDTOtoEntity(dto); // delete Repository.DeleteDistrict(t); dto.IsDeleted = t.IsDeleted; log.Debug("result: 'success'"); } catch (System.Exception e) { // error log.Error(e.ToString()); throw; } }
public object DeleteDistrict(int code) { return(_districtRepository.DeleteDistrict(code)); }
public int DeleteDistrict(int id) { return(_repo.DeleteDistrict(id)); }