public async Task <ActionResult> CreateSpecialityAsync([FromBody] SpecialityCreateModel speciality) { try { _specialityService.CreateSpeciality(speciality.Adapt <Speciality>(), (await _userManager.GetUserAsync(User)).UserName); _specialityService.Save(); } catch (Exception e) { return(BadRequest(e.Message)); } return(StatusCode(201)); }