//Get: Bill Of Material BY Fg public ActionResult BOMIndexByFg() { var rm = _capitaContext.RoleMaterialCreations.ToList(); var fg = _capitaContext.sp_lASTiNSERTEDfG().ToList(); var fgAndRm = new GgAndRmVm { rms = rm, fgsby = fg }; return(View(fgAndRm)); }
// GET: BillOfMaterials public ActionResult BOMIndex() { var rm = _capitaContext.RoleMaterialCreations.ToList(); var fg = _capitaContext.FinishedGoods.ToList(); var fgAndRm = new GgAndRmVm { rms = rm, fgs = fg }; return(View(fgAndRm)); }