Beispiel #1
0
        public ActionResult AddCustomer(int id, string name)
        {
            Customer Cust = GlobalVariables.AddCustomer(id, name);

            if (Cust == null)
            {
                return(HttpNotFound("Bad customer info"));
            }
            return(RedirectToAction("Index"));
        }