public IActionResult DeleteStopSalary(long id) { StopSalary a = StopSalary_repo.Find(id); if (a == null) { return(NotFound()); } StopSalary_repo.Delete(a); return(Ok()); }
public IActionResult UpdateStopSalary([FromBody] StopSalary model) { StopSalary_repo.Update(model); return(new OkObjectResult(new { StopSalaryID = model.StopSalaryId })); }