Esempio n. 1
0
        public ActionResult YonlendirilmemisArizalar()
        {
            List <ArizaViewModel> model = new List <ArizaViewModel>();
            var userManager             = MembershipTools.NewUserManager();

            new ArizaKayitRepo().GetAll().ToList()
            .ForEach(item => model.Add(new ArizaViewModel()
            {
                UyeId       = item.Uye.Id,
                UyeAdı      = MembershipTools.GetUserName(item.Uye.Id),
                Email       = item.Email,
                Mesaj       = item.Mesaj,
                TelNo       = item.TelNo,
                TeknisyenID = item.TeknisyenID,
            }));
            var rolManager = MembershipTools.NewRoleManager();
            var roller     = rolManager.Roles.ToList();

            return(View(model.Where(x => x.TeknisyenID == null).ToList()));
        }