public AuthorizationController(PlasticFreeOceanContext context, IConfiguration config, UserManager <User> userManager, IAccountHelper accountHelper)
 {
     _context       = context;
     _accountHelper = accountHelper;
     _userManager   = userManager;
     _config        = config;
 }
 public UsersController(PlasticFreeOceanContext context, UserManager <User> userManager, IEmailService emailService, IAccountHelper accountHelper, IUnitOfWork <PlasticFreeOceanContext> unitOfWork)
 {
     _context       = context;
     _accountHelper = accountHelper;
     _userManager   = userManager;
     _emailService  = emailService;
     _unitOfWork    = unitOfWork;
 }
        public UsersController(PlasticFreeOceanContext context)
        {
            _context = context;

            if (_context.Users.Count() == 0)
            {
                _context.Users.Add(new User {
                    Email = "*****@*****.**", IsBlocked = false, IsNeedtoReset = false, Name = "bagas", password = "******"
                });
                _context.SaveChanges();
            }
        }