daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest May 21st, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [AcceptVerbs(HttpVerbs.Get)]
  2. public ActionResult View(Guid id)
  3. {
  4.     IntegrationLogic logic = new IntegrationLogic(new IntegrationLinq());
  5.     CompanyLogic companyLogic = new CompanyLogic(new CompanyLinq());
  6.     IntegrationContainer container = new IntegrationContainer();
  7.  
  8.     container.Sources = logic.GetImportSource(id);
  9.     container.Companies = companyLogic.GetCompanies(); // Returns a IList<company>
  10.     container.SourceActions = logic.GetAllSourceActions(); // Returns an IList<SourceAction>
  11.     container.SinkActions = logic.GetAllSinkActions();
  12.     container.SuccessActions = logic.GetAllSuccessActions();
  13.     container.FailureActions = logic.GetAllFailureActions();
  14.     container.Actions = logic.GetAllActions();
  15.     container.Watchers = logic.GetAllWatcherActions();
  16.     container.ChainActions = logic.GetAllChainActions();
  17.  
  18.     return View("View", container);
  19.  }
  20.    
  21. public partial class View : ViewPage<IntegrationContainer> {}
  22.    
  23. <label for="Companies">Company: </label><%=Html.DropDownList("Companies",
  24.                                                 new SelectList(ViewData.Model.Companies, "id", "name", item.CompanyID))%>
  25.    
  26. <label for="Companies">Company: </label><%=Html.DropDownList("Companies",
  27.                                                 new SelectList(ViewData.Model.Companies, "id", "name", item.CompanyID))%>
  28.    
  29. <label for="Companies">Company: </label><%=Html.DropDownList("company",
  30.                                                 new SelectList(ViewData.Model.Companies, "id", "name", item.CompanyID))%>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top