public ActionResult AddRemark(RemarkViewModel model) { CheckoutBL.AddRemark(model.OrderItem.ID, model.Remark, base.UserID); SetSuccessMessage("Yorumunuz başarıyla kaydedildi."); return Redirect(model.RedirectUrl ?? "List"); }
public ActionResult AddRemark(int orderItemId) { RemarkViewModel model = new RemarkViewModel(); model.OrderItem = CheckoutBL.GetDetailedOrderItemById(orderItemId); model.Remark = model.OrderItem.Remark; if (Request.UrlReferrer != null) model.RedirectUrl = Request.UrlReferrer.AbsoluteUri; return View("Remark", model); }