public IActionResult EditOrderItem(EditOrderItemViewModel model) { _logger.LogInfo($"Zapytanie do metody EditOrderItem(model)", new { model }); if (!ModelState.IsValid) { return(View(model)); } var result = _orderRepo.EditOrderItem(model); if (!result.IsSuccess) { return(RedirectToDetails(model.OrderId, result.FailureMessage)); } return(RedirectToDetails(model.OrderId)); }