public IActionResult Post(SpecialisationLevel specialisationLevel) { var newLevel = specialisationLevelService.Create(specialisationLevel); if (newLevel.Id == Guid.Empty) { return(StatusCode(500)); } return(CreatedAtAction("Get", newLevel)); }
public IActionResult Post(SpecialisationLevel level) { var newLevel = specLevelService.Create(level); if (newLevel.Id == Guid.Empty) { return(StatusCode(500)); } return(Ok(newLevel)); }