public async Task <ActionResult <int> > CreateMedicalSpecialty([FromBody] MedicalSpecialtyModel model) { //return Created($"{AppConstants.API_URL_PREFIX}/medicalspecialties/", await Mediator.Send(new CreateMedicalSpecialtyCommand { Model = model })); return(Ok(await Mediator.Send(new CreateMedicalSpecialtyCommand { Model = model }))); }
public async Task <ActionResult> UpdateMedicalSpecialty([FromBody] MedicalSpecialtyModel model) { await Mediator.Send(new UpdateMedicalSpecialtyCommand { Model = model }); return(NoContent()); }