コード例 #1
0
        public ActionResult Attributi()
        {
            FinitureBurattovarie      a = new FinitureBurattovarie();
            List <ProprietaModel>     proprietaModel = a.CreaListaProprietaModel();
            List <MPIntranetListItem> proprieta      = proprietaModel.Select(x => new MPIntranetListItem(x.Descrizione, x.IdFbvProprieta.ToString())).ToList();

            ViewData.Add("Proprieta", proprieta);
            return(View());
        }
コード例 #2
0
        public ActionResult CaricaProprieta()
        {
            FinitureBurattovarie      a = new FinitureBurattovarie();
            List <ProprietaModel>     proprietaModel = a.CreaListaProprietaModel();
            List <MPIntranetListItem> proprieta      = proprietaModel.OrderBy(x => x.Codice).Select(x => new MPIntranetListItem(x.ToString(), x.IdFbvProprieta.ToString())).ToList();

            ViewData.Add("Proprieta", proprieta);
            return(PartialView("CaricaProprietaPartial", proprietaModel));
        }