예제 #1
0
        public ActionResult Create(BinhLuan binhluans)
        {
            var       product = new dbShopQuanAoDataContext();
            KhachHang kh      = (KhachHang)Session["Taikhoan"];

            binhluans.MaKH = kh.MaKH;
            DateTime date = DateTime.Now;

            binhluans.NgayBL = date;
            data.BinhLuans.InsertOnSubmit(binhluans);
            data.SubmitChanges();
            return(RedirectToAction("Details", "ShopQuanAo", new { id = binhluans.MaSP }));
        }
예제 #2
0
 public ChangeProfileViewModel()
 {
     customer = new dbShopQuanAoDataContext();
 }
예제 #3
0
 public ChangePasswordViewModel()
 {
     admin = new dbShopQuanAoDataContext();
 }
 public RegisterViewModel()
 {
     customer = new dbShopQuanAoDataContext();
 }
예제 #5
0
 public ThemSanPhamViewModel()
 {
     Sizes         = new dbShopQuanAoDataContext().Sizes.ToList();
     SelectedSizes = new int[Sizes.Count];
 }
예제 #6
0
 public SanPhamViewModel()
 {
     product = new dbShopQuanAoDataContext();
 }
예제 #7
0
 public SliderQCViewModel()
 {
     data = new dbShopQuanAoDataContext();
 }