skip to Main Content

How to return a list to view after foreach in c# – Asp.net

I have this code where I am iterating over objects using foreach loop public ActionResult userDocs() { var user = Server.HtmlEncode(Request.Cookies["UserName"].Value); var role = db.userdetails.FirstOrDefault(s => s.UserName == user).FullName; var test = "kokulchellamuthu1programmer"; var find = db.ApplySchedule.Where(x => x.CC.Contains(test)).ToList(); foreach(var…

VIEW QUESTION
Back To Top
Search