public ActionResult Product(string prd_key = "") { var response = _productFacade.Find(prd_key); if (response.Success) { return(View(response.Result)); } else { return(View(new RfpProduct())); } }
// GET: Product/Edit/5 public ActionResult Edit(string prd_key) { var model = _productFacade.Find(prd_key); if (model.Success) { model.Result.prd_org_key = CurrentUser.User.org_key; model.Result.RACIContactList = _contactFacade.GetRACIContacts(new RACIFilter { Org_key = CurrentUser.User.org_key, prd_key = model.Result.prd_key.ToString() }); } ViewData["Types"] = _productTypeFacade.GetAll(); //ViewData["Orgs"] = _organizationFacade.GetAll(); return(View(model.Result)); }