public JsonResult AddSupplier(string Name, string Email, string PhoneNumber, string Address, string Support)
        {
            data.AddSupplier(Name, Email, PhoneNumber, Address, Support);
            bool result = true;

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public ActionResult AddSupplier(FormCollection collection)
        {
            string Name        = collection["Name"];
            string Email       = collection["Email"];
            string PhoneNumber = collection["PhoneNumber"];
            string Address     = collection["Address"];
            string Support     = collection["Position"];

            data.AddSupplier(Name, Email, PhoneNumber, Address, Support);
            return(RedirectToAction("Supplier", "Supplier"));
        }