Пример #1
0
        public ApplicationManage(IConfiguration configuration, MARTDbContext _db) : base(configuration)
        {
            productsManage  = new ProductsManage(configuration);
            categorysManage = new CategorysManage(configuration);
            giaodichManage  = new GiaodichManage(configuration, _db);
            baocaoManage    = new BaocaoManage(configuration, _db);
            db = _db;
            Ngayphatsinh ngayphatsinh = db.Ngayphatsinhs.Where(d => d.Madonvi == this.Madonvi && d.Trangthai == 1).FirstOrDefault();

            PublicValue.ngayPhatSinh = ngayphatsinh != null ? ngayphatsinh.Ngayphatsinh1 : DateTime.Now;
        }
Пример #2
0
 public ProductsManage(IConfiguration configuration) : base(configuration)
 {
     categorysManage = new CategorysManage(configuration);
 }