public async Task <IActionResult> PutAsync(string key, [FromBody] UpdatePersonModel model, [FromServices] IUpdatePersonModelToPersonMapper mapper) { var entity = mapper.Map(model); await _service.UpdatePersonAsync(entity, key); return(Ok()); }
public async Task <IActionResult> PutAsync(string key, [FromBody] UpdatePersonModel model, [FromServices] IUpdatePersonModelToPersonMapper mapper) { var entity = mapper.Map(model); await _service.UpdatePersonAsync(entity, key); return(Ok()); }