Пример #1
0
 public IActionResult UpdatePayRateRule([FromBody] PayRateRule payRateRule)
 {
     try
     {
         var rule = _userService.InsertPayRateRule(payRateRule);
         return(Ok(rule));
     }
     catch (Exception ex)
     {
     }
     finally
     {
     }
     return(null);
 }
Пример #2
0
 public IActionResult DeletePayRateRule(int id)
 {
     try
     {
         var payRate = new PayRateRule();
         payRate.Id         = id;
         payRate.ArchivedBy = base.CurrentUser.Id;;
         var result = _userService.DeletePayRateRule(payRate);
         return(Ok(result));
     }
     catch (Exception ex)
     {
     }
     finally
     {
     }
     return(null);
 }
Пример #3
0
 public PayRateRule DeletePayRateRule(PayRateRule payRateRule)
 {
     return(_repo.DeletePayRateRule(payRateRule));
 }
Пример #4
0
 public PayRateRule InsertPayRateRule(PayRateRule payRateRule)
 {
     return(_repo.InsertPayRateRule(payRateRule));
 }