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 })); }
public ChangeProfileViewModel() { customer = new dbShopQuanAoDataContext(); }
public ChangePasswordViewModel() { admin = new dbShopQuanAoDataContext(); }
public RegisterViewModel() { customer = new dbShopQuanAoDataContext(); }
public ThemSanPhamViewModel() { Sizes = new dbShopQuanAoDataContext().Sizes.ToList(); SelectedSizes = new int[Sizes.Count]; }
public SanPhamViewModel() { product = new dbShopQuanAoDataContext(); }
public SliderQCViewModel() { data = new dbShopQuanAoDataContext(); }