public ActionResult MySets() { IEnumerable <Theme> themes = themeRepository.Query(); SearchSetModel model = new SearchSetModel(); model.AllThemes = themes; model.Action = "MySets"; model.Controller = "Wishlist"; var user = HttpContext.User as CustomPrincipal; var sets = wishlistService.GetAllSetsFromWishlistForUser(user.Id, 20); ViewBag.listItems = sets; return(View(model)); }
public List <WishlistApi> GetAllSetsFromWishlistForUser(int userId, int take = -1, int offset = 0) { var tmp = wishlistService.GetAllSetsFromWishlistForUser(userId, take, offset).ProjectTo <WishlistApi>().ToList(); return(tmp); }