Exemplo n.º 1
0
        public IActionResult DeleteStopSalary(long id)
        {
            StopSalary a = StopSalary_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            StopSalary_repo.Delete(a);
            return(Ok());
        }
Exemplo n.º 2
0
 public IActionResult UpdateStopSalary([FromBody] StopSalary model)
 {
     StopSalary_repo.Update(model);
     return(new OkObjectResult(new { StopSalaryID = model.StopSalaryId }));
 }