Esempio n. 1
0
        public IActionResult DeleteEmployeeWorkingDayOt(long id)
        {
            EmployeeWorkingDayOt a = EmployeeWorkingDayOt_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            EmployeeWorkingDayOt_repo.Delete(a);
            return(Ok());
        }
Esempio n. 2
0
 public IActionResult UpdateEmployeeWorkingDayOt([FromBody] EmployeeWorkingDayOt model)
 {
     EmployeeWorkingDayOt_repo.Update(model);
     return(new OkObjectResult(new { EmployeeWorkingDayOtID = model.EmployeeWorkingDayOtId }));
 }
Esempio n. 3
0
 public IActionResult AddEmployeeWorkingDayOt([FromBody] EmployeeWorkingDayOt model)
 {
     EmployeeWorkingDayOt_repo.Add(model);
     return(Ok(model.EmployeeWorkingDayOtId));
 }