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)));
        }
Exemple #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));
        }