Esempio n. 1
0
        public ActionResult Index(vmEnquiry model)
        {
            JobersCafeEntities jobberContext = new JobersCafeEntities();
            JC_Enquiry         enquiry       = new JC_Enquiry();

            enquiry.First_Name    = model.FirstName;
            enquiry.Last_Name     = model.LastName;
            enquiry.Gender        = "male";
            enquiry.Email_Address = model.EmailAddress;
            enquiry.Address       = model.Address;
            enquiry.Phone_Number  = model.PhoneNumber;

            jobberContext.JC_Enquiry.Add(enquiry);
            jobberContext.SaveChanges();
            vmEnquiry model1 = new vmEnquiry();

            return(View(model1));
        }
Esempio n. 2
0
        //
        // GET: /Enquiry/

        public ActionResult Index()
        {
            vmEnquiry model = new vmEnquiry();

            return(View(model));
        }