public HinhAnhController(BanGiayDBContext db) { this.db = db; }
public HinhAnhController() { this.db = new BanGiayDBContext(); }
public DonHangController(BanGiayDBContext db) { this._db = db; }
protected List<String> _state; //lưu thông báo trả về cho view #endregion Fields #region Constructors public AdminController() { this._db = new BanGiayDBContext(); this._nhanvien_permission = new List<String>(); this._state = new List<String>(); }
public PhanHoiController() { this._db = new BanGiayDBContext(); }
public MauSacController(BanGiayDBContext db) { this._db = db; }
public Boolean _Update_LoaiKhachHang(BanGiayDBContext context) { foreach (var item in context.ds_loaikhachhang.OrderByDescending(x => x.mucdiem)) { if (this.diem >= item.mucdiem) { this.loaikhachhang = item; return true; } } return false; }
public TinhTPController(BanGiayDBContext db) { this._db = db; }
public LoaiKhachHangController(BanGiayDBContext db) { this._db = db; }
public Boolean _huy_don_hang(BanGiayDBContext db) { if (this.trangthai.Equals("dabihuy")) { return false; } this.trangthai = "dabihuy"; //cộng ngược sl lại vào sp foreach (var item in this.ds_chitiet_donhang) { item.chitietsp.soluong += item.soluong; } //Trừ lại điểm khách hàng if (this.khachhang != null) { this.khachhang.diem -= this.tongtien / 10000; this.khachhang._Update_LoaiKhachHang(db); } return true; }
public HangSXController(BanGiayDBContext db) { this._db = db; }
public KichThuocController(BanGiayDBContext db) { this._db = db; }
public PhanHoiController(BanGiayDBContext db) { this._db = db; }
public ChiTietSPController(BanGiayDBContext _db) { this._db = _db; }
public QuyenController(BanGiayDBContext db) { this._db = db; }
public ChiTietSPController() { this._db = new BanGiayDBContext(); }
public SanPhamController(BanGiayDBContext db) { this._db = db; }
public TinhTPController() { this._db = new BanGiayDBContext(); }
public LoaiNhanVienController(BanGiayDBContext db) { this._db = db; }