Ejemplo n.º 1
0
        public async Task <IActionResult> PostAsync([FromBody] Speciality value)
        {
            if (value == null)
            {
                return(BadRequest());
            }

            await _specialityService.AddAsync(value);

            return(CreatedAtRoute("GetSpeciality", new { id = value.Id }, value));
        }