Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> PutOrder(int id, PublicApi.v1.DTO.Order order) { if (!ModelState.IsValid || id != order.Id || order.ShopId != User.GetShopId()) { return(BadRequest()); } _bll.Orders.Update(OrderMapper.MapFromExternal(order)); await _bll.SaveChangesAsync(); return(NoContent()); }