public async Task <IHttpActionResult> UpdateAsync([FromBody] PedidoViewModel entity, [FromUri] int id) { var retClient = await _IPedidoAppService.GetByIdAsync(id); if (retClient == null) { return(NotFound()); } else { await _IPedidoAppService.UpdateAsync(entity, id); return(Ok(entity)); } }
public async Task <IHttpActionResult> Put(int id, [FromBody] PedidoViewModel input) { await _serviceBase.UpdateAsync(input, id); return(Ok(input)); }