Пример #1
0
        public async Task <IHttpActionResult> IsFavorite(string path, string profile)
        {
            FavoriteRepository repository = new FavoriteRepository();

            return(Ok(await repository.IsFavorite(rhNetContext, this.User.Identity.Name, path, profile)));
        }
Пример #2
0
        public async Task <ActionResult <bool> > IsFavorite([FromServices] RhNetContext rhNetContext, string path, string profile)
        {
            FavoriteRepository repository = new FavoriteRepository();

            return(await repository.IsFavorite(rhNetContext, this.User.Identity.Name, path, profile));
        }