public IActionResult DeleteManagementLevel(long id) { ManagementLevel a = MngLvl_repo.Find(id); if (a == null) { return(NotFound()); } MngLvl_repo.Delete(a); return(Ok()); }
public IActionResult UpdateManagementLevel([FromBody] ManagementLevel model) { MngLvl_repo.Update(model); return(new OkObjectResult(new { ManagementLevelID = model.ManagementLevelId })); }