Example #1
0
        public IActionResult DeleteManagementLevel(long id)
        {
            ManagementLevel a = MngLvl_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            MngLvl_repo.Delete(a);
            return(Ok());
        }
Example #2
0
 public IActionResult UpdateManagementLevel([FromBody] ManagementLevel model)
 {
     MngLvl_repo.Update(model);
     return(new OkObjectResult(new { ManagementLevelID = model.ManagementLevelId }));
 }