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