skip to Main Content

IGrouping Not Found in Razor View – Asp.net

I've done a GroupBy using Linq as follows in a controller: model.aLstProducts = result[0].Results .Where(c => c.Id == ProductId) .ToList() .FirstOrDefault() .ListOfProducts .GroupBy(c => c.ProductCategory); The property has been defined as follows: public IEnumerable<IGrouping<string, ProductsViewModel>> aLstProducts { get; set; }…

VIEW QUESTION

Id not getting passed to Partial View form – Asp.net

Parent View: @Html.Action("SetReview", "Review", new {sellerId = Model.SellerId}) [HttpGet] public ActionResult SetReview(string sellerId) { return PartialView("_Review", new Finder.Models.Review() { SellerId = sellerId }); } This is the part where the Id is not getting passed [HttpPost] public ActionResult SetReview(Finder.Models.Review review)…

VIEW QUESTION
Back To Top
Search