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 }
public ActionResult Customer() //to view the customer registration page,goes to customer.cshtml { Customer_Profile c = new Customer_Profile(); return(View()); }