コード例 #1
0
 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"));
     }
 }
コード例 #2
0
 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
     }
 }
コード例 #3
0
 public ActionResult CapNhat(int id, int soLuong)
 {
     GioHangBUS.CapNhat(id, soLuong);
     return(RedirectToAction("Index"));
 }