public ChangeAvatarModel(
            UserManager <ApplicationUser> userManager
            )
        {
            _userManager = userManager;

            _context = new BDT_MLDBContext();
        }
 public ExternalLoginModel(
     SignInManager <ApplicationUser> signInManager,
     UserManager <ApplicationUser> userManager,
     ILogger <ExternalLoginModel> logger)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _logger        = logger;
     _context       = new BDT_MLDBContext();
 }
Пример #3
0
 public IndexModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _context       = new BDT_MLDBContext();
 }
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     _emailSender   = emailSender;
     _context       = new BDT_MLDBContext();
 }
        public PostController(UserManager <ApplicationUser> userManager)
        {
            this._postRepository = new PostRespository();

            _context     = new BDT_MLDBContext();
            _userManager = userManager;

            listPrice = new List <priceFromToPost>();
            listPrice.Add(new priceFromToPost {
                key = 0, PriceFrom = 0, PriceTo = 100
            });
            listPrice.Add(new priceFromToPost {
                key = 1, PriceFrom = 101, PriceTo = 500
            });
            listPrice.Add(new priceFromToPost {
                key = 2, PriceFrom = 501, PriceTo = 1000
            });
            listPrice.Add(new priceFromToPost {
                key = 3, PriceFrom = 1001, PriceTo = 3000
            });
            listPrice.Add(new priceFromToPost {
                key = 4, PriceFrom = 3001, PriceTo = 10000
            });
            listPrice.Add(new priceFromToPost {
                key = 5, PriceFrom = 10001, PriceTo = 1000000
            });
            listprice = new List <SelectListItem>
            {
                new SelectListItem {
                    Text = "Dưới 100 triệu", Value = (0).ToString()
                },
                new SelectListItem {
                    Text = "Từ 100 triệu đến 500 triệu", Value = (1).ToString()
                },
                new SelectListItem {
                    Text = "Từ 500 triệu đến 1 tỷ", Value = (2).ToString()
                },
                new SelectListItem {
                    Text = "Từ 1 tỷ đến 3 tỷ", Value = (3).ToString()
                },
                new SelectListItem {
                    Text = "Từ 3 tỷ đến 10 tỷ", Value = (4).ToString()
                },
                new SelectListItem {
                    Text = "Trên 10 tỷ", Value = (5).ToString()
                }
            };
        }
Пример #6
0
 public ManagePostsAdminController(UserManager <ApplicationUser> userManager)
 {
     _context      = new BDT_MLDBContext();
     _userManager  = userManager;
     StatusMessage = "Đang xử lí";
 }
Пример #7
0
 public PostIndex(BDT_MLDBContext db)
 {
 }
 public ManageCustomersController(UserManager <ApplicationUser> userManager)
 {
     _userManager = userManager;
     _context     = new BDT_MLDBContext();
     //StatusMessage = "Đang xử lí";
 }
 public DashboardController(UserManager <ApplicationUser> userManager)
 {
     _context     = new BDT_MLDBContext();
     _userManager = userManager;
 }
Пример #10
0
 public LoginModel(SignInManager <ApplicationUser> signInManager, ILogger <LoginModel> logger)
 {
     _signInManager = signInManager;
     _logger        = logger;
     _context       = new BDT_MLDBContext();
 }
Пример #11
0
 private DataProvider()
 {
     db = new BDT_MLDBContext();
 }
Пример #12
0
 public PublicController()
 {
     _context = new BDT_MLDBContext();
 }