public ActionResult ProjectEdit(string guid = "") { var project = _projectFactory.GetProject(guid); ViewBag.customers = _customerFactory.GetAllCustomers() ?? new List <Customer>(); ViewBag.users = UserFactory.GetAllUsers() ?? new List <User>(); return(View(project ?? new Project())); }
// GET: Customer public ActionResult Index() { ViewBag.customers = _customerFactory.GetAllCustomers() ?? new List <Customer>(); return(View()); }