Esempio n. 1
0
        public IActionResult DeleteEmployeeOutgoingOt(long id)
        {
            EmployeeOutgoingOt a = EmployeeOutgoingOt_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            EmployeeOutgoingOt_repo.Delete(a);
            return(Ok());
        }
Esempio n. 2
0
 public IActionResult UpdateEmployeeOutgoingOt([FromBody] EmployeeOutgoingOt model)
 {
     EmployeeOutgoingOt_repo.Update(model);
     return(new OkObjectResult(new { EmployeeOutgoingOtID = model.EmployeeOutgoingOtId }));
 }
Esempio n. 3
0
 public IActionResult AddEmployeeOutgoingOt([FromBody] EmployeeOutgoingOt model)
 {
     EmployeeOutgoingOt_repo.Add(model);
     return(Ok(model.EmployeeOutgoingOtId));
 }