コード例 #1
0
        public IActionResult DeleteStopSalary(long id)
        {
            StopSalary a = StopSalary_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            StopSalary_repo.Delete(a);
            return(Ok());
        }
コード例 #2
0
 public IActionResult UpdateStopSalary([FromBody] StopSalary model)
 {
     StopSalary_repo.Update(model);
     return(new OkObjectResult(new { StopSalaryID = model.StopSalaryId }));
 }