public async Task <ActionResult <int> > CreateRecordStorageLocation([FromBody] RecordStorageLocationModel model) { //return Created($"{AppConstants.API_URL_PREFIX}/beds/", await Mediator.Send(new CreateRecordStorageLocationCommand { Model = model })); return(Ok(await Mediator.Send(new CreateRecordStorageLocationCommand { Model = model }))); }
public async Task <ActionResult> UpdateRecordStorageLocation([FromBody] RecordStorageLocationModel model) { await Mediator.Send(new UpdateRecordStorageLocationCommand { Model = model }); return(NoContent()); }