示例#1
0
        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;
            }
        }
示例#2
0
 public object DeleteDistrict(int code)
 {
     return(_districtRepository.DeleteDistrict(code));
 }
示例#3
0
 public int DeleteDistrict(int id)
 {
     return(_repo.DeleteDistrict(id));
 }