public IActionResult UpdatePayRateRule([FromBody] PayRateRule payRateRule) { try { var rule = _userService.InsertPayRateRule(payRateRule); return(Ok(rule)); } catch (Exception ex) { } finally { } return(null); }
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); }
public PayRateRule DeletePayRateRule(PayRateRule payRateRule) { return(_repo.DeletePayRateRule(payRateRule)); }
public PayRateRule InsertPayRateRule(PayRateRule payRateRule) { return(_repo.InsertPayRateRule(payRateRule)); }