public ActionResult CapNhat(string masanpham, string tensanpham, int gia, int soluong) { try { GioHangBUS.CapNhat(masanpham, User.Identity.GetUserId(), gia, soluong, tensanpham); return(RedirectToAction("Index")); } catch { return(RedirectToAction("../Shop/Index")); } }
public ActionResult CapNhat(string masanpham, string tensanpham, int soluong, int gia, string hinhchinh) { try { GioHangBUS.CapNhat(masanpham, User.Identity.GetUserId(), tensanpham, soluong, gia, hinhchinh); return(RedirectToAction("Index")); //them thanh cong } catch { return(RedirectToAction("../MobiShop/Index")); //them ko thanh cong } }
public ActionResult CapNhat(int id, int soLuong) { GioHangBUS.CapNhat(id, soLuong); return(RedirectToAction("Index")); }