public static void SeedRequests(MyProductionDbContext context,
                                        UserManager <MyIdentityUser> userManager)
        {
            // users
            MyIdentityUser zafer  = userManager.FindByNameAsync("zafer").Result;
            MyIdentityUser mattar = userManager.FindByNameAsync("mattar").Result;
            MyIdentityUser josh   = userManager.FindByNameAsync("josh").Result;

            //drivers
            MyIdentityUser gavin = userManager.FindByNameAsync("gavin").Result;
            MyIdentityUser sean  = userManager.FindByNameAsync("sean").Result;
            MyIdentityUser anas  = userManager.FindByNameAsync("anas").Result;

            RequestModel zaferRequest = new RequestModel
            {
                Item           = "Vape",
                UserId         = zafer.Id,
                DriverId       = anas.Id,
                PickupAddress  = anas.Address,
                DropOffAddress = zafer.Address,
                Status         = "Accepted By Driver",
                ImageName      = "vape.png"
            };

            context.Requests.Add(zaferRequest);

            RequestModel mattarRequest = new RequestModel
            {
                Item           = "Hijab",
                UserId         = mattar.Id,
                PickupAddress  = gavin.Address,
                DropOffAddress = gavin.Address,
                Status         = "Awaiting Driver",
                ImageName      = "hijab.jpg"
            };

            context.Requests.Add(mattarRequest);

            RequestModel joshRequest = new RequestModel
            {
                Item           = "American flag",
                UserId         = josh.Id,
                PickupAddress  = sean.Address,
                DropOffAddress = sean.Address,
                Status         = "Awaiting Driver",
                ImageName      = "flag.jpg"
            };

            context.Requests.Add(joshRequest);
            context.SaveChanges();
        }
        public static void SeedUsers(UserManager <MyIdentityUser> userManager)
        {
            if (userManager.FindByNameAsync("admin").Result == null)
            {
                MyIdentityUser admin = new MyIdentityUser()
                {
                    UserName = "******",
                    Password = "******",
                    Address  = new Address()
                };

                IdentityResult adminResult = userManager.CreateAsync(admin, admin.Password).Result;
                if (adminResult.Succeeded)
                {
                    IdentityResult adminRoleResult = userManager.AddToRoleAsync(admin, "Admin").Result;
                    if (adminRoleResult.Succeeded)
                    {
                        Debug.WriteLine(admin.UserName + "Admin created successfuly");
                    }
                }
            }

            if (userManager.FindByNameAsync("zafer").Result == null)
            {
                MyIdentityUser zafer = new MyIdentityUser
                {
                    UserName    = "******",
                    Email       = "*****@*****.**",
                    Password    = "******",
                    PhoneNumber = "7349254343"
                };

                zafer.Address = new Address
                {
                    UserId       = zafer.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Ann Arbor",
                    State        = "MI",
                    ZipCode      = 48103
                };

                IdentityResult zaferResult     = userManager.CreateAsync(zafer, zafer.Password).Result;
                IdentityResult zaferRoleResult = userManager.AddToRoleAsync(zafer, "User").Result;

                MyIdentityUser anas = new MyIdentityUser
                {
                    UserName       = "******",
                    Email          = "*****@*****.**",
                    Password       = "******",
                    CarMake        = "Honda",
                    CarYear        = "1992",
                    CarModel       = "Toyota",
                    CarColor       = "Purple",
                    DriversLicense = "K123456789",
                    LicensePlate   = "DQT1234",
                    PhoneNumber    = "7341234567"
                };

                anas.Address = new Address
                {
                    UserId       = anas.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Ypsilanti",
                    State        = "MI",
                    ZipCode      = 48197
                };

                IdentityResult anasResult     = userManager.CreateAsync(anas, anas.Password).Result;
                IdentityResult anasRoleResult = userManager.AddToRoleAsync(anas, "Driver").Result;

                MyIdentityUser josh = new MyIdentityUser
                {
                    UserName    = "******",
                    Email       = "*****@*****.**",
                    Password    = "******",
                    PhoneNumber = "5172704123"
                };

                josh.Address = new Address
                {
                    UserId       = josh.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Ypsilanti",
                    State        = "MI",
                    ZipCode      = 48197
                };

                IdentityResult jsohResult     = userManager.CreateAsync(josh, josh.Password).Result;
                IdentityResult joshRoleResult = userManager.AddToRoleAsync(josh, "User").Result;


                MyIdentityUser sean = new MyIdentityUser
                {
                    UserName       = "******",
                    Email          = "*****@*****.**",
                    Password       = "******",
                    CarMake        = "Mazda",
                    CarYear        = "2014",
                    CarModel       = "Mazda 3",
                    CarColor       = "Blue",
                    LicensePlate   = "GHH123",
                    DriversLicense = "K4423123",
                    PhoneNumber    = "5173587261"
                };

                sean.Address = new Address
                {
                    UserId       = sean.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Ypsilanti",
                    State        = "MI",
                    ZipCode      = 48197
                };

                IdentityResult seanResult     = userManager.CreateAsync(sean, sean.Password).Result;
                IdentityResult seanRoleResult = userManager.AddToRoleAsync(sean, "Driver").Result;

                MyIdentityUser moe = new MyIdentityUser
                {
                    UserName    = "******",
                    Email       = "*****@*****.**",
                    Password    = "******",
                    PhoneNumber = "7341234567"
                };

                moe.Address = new Address
                {
                    UserId       = moe.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Dearborn",
                    State        = "MI",
                    ZipCode      = 48000
                };

                IdentityResult moeResult     = userManager.CreateAsync(moe, moe.Password).Result;
                IdentityResult moeRoleResult = userManager.AddToRoleAsync(moe, "User").Result;


                MyIdentityUser gavin = new MyIdentityUser
                {
                    UserName       = "******",
                    Email          = "*****@*****.**",
                    Password       = "******",
                    CarYear        = "3045",
                    CarMake        = "Tesla",
                    CarColor       = "Black",
                    CarModel       = "S3",
                    LicensePlate   = "RTG1234",
                    DriversLicense = "K123123",
                    PhoneNumber    = "7341234567"
                };

                gavin.Address = new Address
                {
                    UserId       = gavin.Id,
                    StreetName   = "main st",
                    StreetNumber = "123",
                    City         = "Ann Arbor",
                    State        = "MI",
                    ZipCode      = 48193
                };

                IdentityResult gavinResult     = userManager.CreateAsync(gavin, gavin.Password).Result;
                IdentityResult gavinRoleResult = userManager.AddToRoleAsync(gavin, "Driver").Result;
            }
        }