public ActionResult Create(CustomerMod custMod)
 {
     try
     {
         // TODO: Add insert logic here
         if (!ModelState.IsValid)
         {
             var cust = irepOrig.GetCustomers();
             custMod.FirstName = cust.Select(c => c.FristName).First();
             custMod.LastName  = cust.Select(c => c.LsatName).First();
             return(View(custMod));
         }
         Project0.Library.Customer tempcust = new Project0.Library.Customer(custMod.FirstName, custMod.LastName);
         irepOrig.AddCust(tempcust);
         irepOrig.why();
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         var cust = irepOrig.GetCustomers();
         custMod.FirstName = cust.Select(c => c.FristName).First();
         custMod.LastName  = cust.Select(c => c.LsatName).First();
         return(View(custMod));
     }
 }
        // GET: Customer/Create
        public ActionResult Create()
        {
            var cust    = irepOrig.GetCustomers();
            var custMod = new CustomerMod
            {
                //FirstName = cust.Select(c => c.FristName).First(),
                //LastName = cust.Select(c => c.LsatName).First()
            };

            return(View(custMod));
        }