public IEnumerable <SelectListItem> ListOfFathersDayTicketCatgory(int categoryId) { IEnumerable <System.Web.Mvc.SelectListItem> items = repoEventCategory.GetManyNonAsync(o => o.Status == "Active" && o.CategoryId == categoryId).AsEnumerable() .Select(p => new System.Web.Mvc.SelectListItem { Text = p.CategoryName, Value = p.Itbid.ToString() }); return(items); }