public ActionResult GetAllCategory() { ProductCategory category = new ProductCategory(); IQueryable <IGrouping <bool, Model.EF.ProductCategory> > categories = category.GetAllCategories(); //Response.End(); return(View("GetAllCategory", categories)); }