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)); }
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)); }