Ejemplo n.º 1
0
 public ActionResult GetTable()
 {
     CompanyViewModel[] company;
     using (UserContext db = new UserContext())
     {
         company = SendDbUtility.GelAllCompanyList();
     }
     return(PartialView(company));
 }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        public ActionResult Home()
        {
            var company = SendDbUtility.GelAllCompanyList();

            return(View(company));
        }