//[SwaggerOperation("CreateOPUAAPs")] //[SwaggerResponse(200, type: typeof(OPUAAPViewModel))] public async Task <IHttpActionResult> Update([FromBody] UpdatePersonDetailCommand body) { if (body == null) { return(BadRequest("Unable to parse body, please ensure the format is correct.")); } var data = await _personDetailService.UpdateAsync(body); return(Ok(data)); }
public Task <PersonDetailViewModel> UpdateAsync(UpdatePersonDetailCommand model) { return(commandProcessor.ProcessAsync <UpdatePersonDetailCommand, PersonDetailViewModel>(model)); }