예제 #1
0
        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()));
        }
예제 #2
0
 // GET: Customer
 public ActionResult Index()
 {
     ViewBag.customers = _customerFactory.GetAllCustomers() ?? new List <Customer>();
     return(View());
 }