/// <summary> /// add or edit /// </summary> /// <param name=""></param> /// <param name=""></param> /// <returns></returns> public ActionResult Input(string id = "") { //ViewBag.ListCountry = CatalogBLL.Country_List(); if (string.IsNullOrEmpty(id)) { ViewBag.Title = "add new Customer"; ViewBag.Type = "Add"; Customer newCustomer = new Customer(); newCustomer.CustomerID = ""; return(View(newCustomer)); } else { ViewBag.Title = "edit Customer"; ViewBag.Type = "Edit"; Customer editCustomer = CatalogBLL.Customers_Get(id); return(View(editCustomer)); } }