コード例 #1
0
        public IActionResult CreateCustomer(string Name, string Email, string Address, string City, string ZipCode, bool CanContact, bool Terms)
        {
            Customer cust = new Customer();

            cust.Name       = Name;
            cust.Email      = Email;
            cust.Address    = Address;
            cust.City       = City;
            cust.ZipCode    = ZipCode;
            cust.CanContact = CanContact;
            cust.Terms      = Terms;
            CustomerRepo.AddSent(cust);
            return(View());
        }