Esempio n. 1
0
        public async Task <IActionResult> PutAsync(Guid id, [FromBody] Speciality value)
        {
            var item = _specialityService.GetByIdAsync(id);

            if (item == null)
            {
                return(NotFound());
            }

            if (value == null)
            {
                return(BadRequest());
            }

            value.Id = id;
            await _specialityService.UpdateAsync(value);

            return(Ok());
        }