Beispiel #1
0
        public IActionResult Post(SpecialisationLevel specialisationLevel)
        {
            var newLevel = specialisationLevelService.Create(specialisationLevel);

            if (newLevel.Id == Guid.Empty)
            {
                return(StatusCode(500));
            }
            return(CreatedAtAction("Get", newLevel));
        }
Beispiel #2
0
        public IActionResult Post(SpecialisationLevel level)
        {
            var newLevel = specLevelService.Create(level);

            if (newLevel.Id == Guid.Empty)
            {
                return(StatusCode(500));
            }
            return(Ok(newLevel));
        }