Exemple #1
0
        public IActionResult DeleteOverTimeType(long id)
        {
            OverTimeType a = OverTimeType_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            OverTimeType_repo.Delete(a);
            return(Ok());
        }
Exemple #2
0
 public IActionResult UpdateOverTimeType([FromBody] OverTimeType model)
 {
     OverTimeType_repo.Update(model);
     return(new OkObjectResult(new { OverTimeTypeID = model.OverTimeTypeId }));
 }