Beispiel #1
0
        public ActionResult Index()
        {
            int[] typeid = Signing.GetSignDataList(EmpNo).ToList().Select(c => c.Form.FormId).ToArray();

            var formtype =
                ContextFactory.ContextHelper.FormTypes.Where(k => typeid.Contains(k.FormId)).Select(m => new SelectListItem()
            {
                Text  = m.FormName,
                Value = m.FormId.ToString()
            });

            ViewBag.FormType = formtype;
            Console.Write(formtype);
            return(View("~/Areas/eForm/Views/Signing/index.cshtml", formtype));
        }