// right clicking here creates a form atomagically.
 public IActionResult Create(CustomerViewModel customer)
 {
     try
     {
         if (ModelState.IsValid)
         {
             Random    random = new Random();
             Customer1 cx     = new Customer1()
             {
                 Id       = random.Next(1000000000, 2000000000),
                 Fname    = customer.Fname,
                 Lname    = customer.Lname,
                 Email    = customer.Email,
                 Phone    = customer.Phone,
                 UserPass = customer.UserPass
             };
             _repo.CreateCustomer(cx);
             return(RedirectToAction("Index", "Home"));
         }
         else
         {
             return(View());
         }
     }
     catch
     {
         return(View());
     }
 }