コード例 #1
0
        public ActionResult AddCustomer(Customer_Profile c) //after clicking register button,this method is called and "thank you" messsage is displayed if all inputs are correct
        {
            c.Status    = "Pending";
            c.Role_Type = "Customer";
            ViewBag.msg = DBOperations.InsertCustomer(c);


            return(View("Customer"));//displays 'thank you" msg on the same customer.cshtml
        }
コード例 #2
0
        public ActionResult Customer() //to view the customer registration page,goes to customer.cshtml
        {
            Customer_Profile c = new Customer_Profile();

            return(View());
        }