public ActionResult GetTable() { CompanyViewModel[] company; using (UserContext db = new UserContext()) { company = SendDbUtility.GelAllCompanyList(); } return(PartialView(company)); }
public ActionResult PrintPage() { var modelsPic = SendDbUtility.GetAllPictures(); var modelsCom = SendDbUtility.GelAllCompanyList(); //SelectList itemsPic = new SelectList(modelsPic, "Id", "Name"); //SelectList itemsCom = new SelectList(modelsCom, "Id", "CompanyName"); ViewBag.Pictures = modelsPic; ViewBag.Companies = modelsCom; object[] x = { new CompanyModel(), new UserModel(), new PictureModel() }; return(View(x)); }
public ActionResult Home() { var company = SendDbUtility.GelAllCompanyList(); return(View(company)); }