Exemplo n.º 1
0
 public IActionResult DeletHiredProperty([FromBody] HiredProperty hiredProperty)
 {
     try
     {
         bool isUpdated = _hiringRegisterService.DeleteHiredProperty(hiredProperty);
         return(Ok(isUpdated));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         throw ex;
     }
 }
Exemplo n.º 2
0
 public IActionResult AddHiredProperty([FromBody] HiredProperty hiredProperty)
 {
     try
     {
         int id = _hiringRegisterService.AddHiredProperty(hiredProperty);
         return(Ok(id));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         throw ex;
     }
 }
Exemplo n.º 3
0
 public int AddHiredProperty(HiredProperty hiredProperty)
 {
     using var _hiringRegisterRepository = new HiringRegisterRepository(_appSettings);
     return(_hiringRegisterRepository.AddHiredProperty(hiredProperty));
 }
Exemplo n.º 4
0
 public bool DeleteHiredProperty(HiredProperty hiredProperty)
 {
     using var _hiringRegisterRepository = new HiringRegisterRepository(_appSettings);
     return(_hiringRegisterRepository.DeleteHiredProperty(hiredProperty));
 }