public IEnumerable <Categorie> FavoriteRepostCategories([FromBody] RepostCategoriesRequest request) { var logger = new MyLogger(); logger.Log($"repost start ({request.UserName})"); var vkProvider = new VKProvider(appId, login, password, logger); var result = Main.GetUserFavoriteCategories(vkProvider, _context, request); logger.Log($"repost finish ({request.UserName})"); return(result); }
public IEnumerable <Categorie> LikeCategories(long userId) { var vkProvider = new VKProvider(appId, login, password, new MyLogger()); return(Main.GetUserLikeCategories(vkProvider, userId)); }