예제 #1
0
        public ActionResult CustomerLogin(Customer C1)//this action method redirects us to customer registration page where we can give details and register as a member

        {
            if (ModelState.IsValid)
            {
                C1.Customer_ID  = Dbclass.getCustomerId(C1.CustomerName);
                C1.CustomerType = Dbclass.getCustomerType(C1.DateOfBirth);
                ViewBag.msg     = Dbclass.UserRegistration(C1);
                return(View());
            }
            else
            {
                return(View("CustomerLogin"));
            }
        }