public IActionResult homeCreate(int Id) { FactoryService fs = new FactoryService(_Context); SecoundrySourceService ss = new SecoundrySourceService(_Context); ViewBag.factories = fs.GetAllFactoriesSimple(); ViewBag.secondaries = ss.GetAllSecoundrySources(); return(View()); }
public IActionResult Status() { ReportService rs = new ReportService(_con); PrimarySourceSerivce ps = new PrimarySourceSerivce(_con); SecoundrySourceService ss = new SecoundrySourceService(_con); ViewBag.primaries = ps.GetAllPrimarySources(); ViewBag.secondaries = ss.GetAllSecoundrySources(); var model = rs.GetSourceStatus(); return(View(model)); }
public IActionResult Index(int facid = -1, int primary = -1) { List <SecoundrySouresDataModelSim> allsec; FactoryService fs = new FactoryService(_Context); ViewBag.factories = fs.GetAllFactoriesSimple(); SecoundrySourceService ss = new SecoundrySourceService(_Context); if (facid != -1) { allsec = ss.GetSpecificSecondary(facid, primary); } else { allsec = ss.GetAllSecoundrySources(); } return(View(allsec)); }