public IActionResult GetLeasedPropertyDetails(LeasedProperty leasedProperty)
 {
     try
     {
         leasedProperty = _leaseManagementService.GetLeasedPropertyDetails(leasedProperty);
         return(Ok(leasedProperty));
     }
     catch (Exception ex)
     {
         log.Info("Error");
         throw ex;
     }
 }
 public IActionResult DeleteLeasedProperty([FromBody] LeasedProperty leasedProperty)
 {
     try
     {
         bool isUpdated = _leaseManagementService.DeleteLeasedProperty(leasedProperty);
         return(Ok(isUpdated));
     }
     catch (Exception ex)
     {
         log.Error(ex);
         throw ex;
     }
 }
 public bool DeleteLeasedProperty(LeasedProperty leasedProperty)
 {
     using var _leaseManagementRepository = new LeaseManagementRepository(_appSettings);
     return(_leaseManagementRepository.DeleteLeasedProperty(leasedProperty));
 }
 public LeasedProperty GetLeasedPropertyDetails(LeasedProperty leasedProperty)
 {
     using var _leaseManagementRepository = new LeaseManagementRepository(_appSettings);
     return(_leaseManagementRepository.GetLeasedPropertyDetails(leasedProperty));
 }