// GET: Sites/Create
 public IActionResult Create()
 {
     ViewData["CompanyId"]    = new SelectList(_context.Company, "Id", "CompanyName");
     ViewData["PersonId"]     = new SelectList(_context.Person, "Id", "FullName");
     ViewData["PersonId1"]    = new SelectList(_context.Person, "Id", "FullName");
     ViewData["SiteRoleId"]   = new SelectList(_context.Set <SiteRole>(), "Id", "SiteRoleName");
     ViewData["SiteStatusId"] = new SelectList(_context.Set <SiteStatus>(), "Id", "SiteStatusName");
     ViewData["SiteTypeId"]   = new SelectList(_context.Set <SiteType>(), "Id", "SiteTypeName");
     return(View());
 }
 // GET: People/Create
 public IActionResult Create()
 {
     ViewData["CompanyId"]        = new SelectList(_context.Company, "Id", "CompanyName");
     ViewData["PersonAccountsId"] = new SelectList(_context.Set <PersonAccounts>(), "Id", "PaymentDetails");
     ViewData["PersonRoleId"]     = new SelectList(_context.Set <PersonRole>(), "Id", "PersonRoleName");
     ViewData["PersonStatusId"]   = new SelectList(_context.Set <PersonStatus>(), "Id", "PersonStatusName");
     ViewData["PersonTypeId"]     = new SelectList(_context.Set <PersonType>(), "Id", "PersonTypeName");
     return(View());
 }
Exemplo n.º 3
0
 // GET: Incidents/Create
 public IActionResult Create()
 {
     ViewData["MtrlListId"]         = new SelectList(_context.Set <MtrlList>(), "Id", "Description");
     ViewData["PersonId"]           = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["PersonId2"]          = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["IncidentPriorityId"] = new SelectList(_context.Set <IncidentPriority>(), "Id", "IncidentPriorityName");
     ViewData["IncidentStatusId"]   = new SelectList(_context.Set <IncidentStatus>(), "Id", "IncidentStatusName");
     ViewData["IncidentTypeId"]     = new SelectList(_context.Set <IncidentType>(), "Id", "IncidentTypeName");
     ViewData["PurchaseOrderId"]    = new SelectList(_context.Set <PurchaseOrder>(), "Id", "PONumber");
     ViewData["PersonId1"]          = new SelectList(_context.Set <Person>(), "Id", "FullName");
     ViewData["SiteId"]             = new SelectList(_context.Set <Site>(), "Id", "NoSite");
     return(View());
 }
 // GET: Companies/Create
 public IActionResult Create()
 {
     ViewData["CompanyRoleId"]   = new SelectList(_context.Set <CompanyRole>(), "Id", "CompanyRoleName");
     ViewData["CompanyStatusId"] = new SelectList(_context.Set <CompanyStatus>(), "Id", "CompanyStatusName");
     ViewData["CompanyTypeId"]   = new SelectList(_context.Set <CompanyType>(), "Id", "CompanyTypeName");
     return(View());
 }
 // GET: Arenas/Create
 public IActionResult Create()
 {
     ViewData["ArenaStatusId"] = new SelectList(_context.Set <ArenaStatus>(), "Id", "StatusName");
     ViewData["DistrictId"]    = new SelectList(_context.Set <District>(), "Id", "DistrictName");
     return(View());
 }
 // GET: Assets/Create
 public IActionResult Create()
 {
     ViewData["AssetBrandId"]  = new SelectList(_context.Set <AssetBrand>(), "Id", "AssetBrandName");
     ViewData["AssetStatusId"] = new SelectList(_context.Set <AssetStatus>(), "Id", "AssetStatusName");
     ViewData["AssetTypeId"]   = new SelectList(_context.Set <AssetType>(), "Id", "AssetTypeName");
     ViewData["SiteId"]        = new SelectList(_context.Site, "Id", "NoSite");
     return(View());
 }