/// <summary> /// Kucharz oznacza element zamówienia jako 'Gotowy do wydania' /// </summary> /// <param name="orderItemId"></param> /// <returns></returns> public ActionResult MarkAsReadyOrderItem(Guid orderItemId) { if (restaurantId == null) { InitialInfo(); } var cmdResult = ExecuteCommand(new MarkAsReadyOrderItemCommand(orderItemId)); if (cmdResult.Success) { return(PartialView("_OrderItemInTable", OrderMapper.MapOrderItemToForm(cmdResult.Result))); } else { return(new HttpStatusCodeResult(400, cmdResult.MessageForHumans)); } }