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

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