public ActionResult _AddContactComment(CustomerIdea model) { try { model.UserID = Userid; model.Type = 2; model.ID = 0; CustomerIdeaService.Save(model); return RedirectToAction("Contact", "Home"); } catch { return RedirectToAction("Contact", "Home"); } }
public ActionResult _AddOrderDetailComment(CustomerIdea model, HttpPostedFileBase file) { try { model.Attachment = PathUpload; model.UserID = Userid; model.Type = 1; PathUpload = ""; model.OrderID = OrderID; model.ID = 0; var _user = UserService.GetByID(Userid); model.Email = _user.Email; CustomerIdeaService.Save(model); return RedirectToAction("Detail", "Order", new { id=OrderID}); } catch { return RedirectToAction("Detail", "Order", new { id = OrderID }); } }