public virtual ViewResult Download(int orderId, Guid userId) { var user = _userBusiness.Find(userId); if (user == null) { return(View(MVC.Order.Views.NotFound)); } var order = _orderBusiness.Find(orderId, "OrderItems,User"); if (order.UserId != userId) { return(View(MVC.Order.Views.NotFound)); } ViewBag.Items = _attachmentSrv.Get(orderId, AttachmentType.Translation); return(View(order)); }
public virtual PartialViewResult GetOrderAttachments(int orderId, AttachmentType attachmentType) => PartialView(MVC.Attachment.Views.Partials._List, _attachmentBusiness.Get(orderId, attachmentType));