public async Task <IActionResult> Follow(string id, [FromQuery] bool isDetails = false, bool isFavorites = false) { if (!await favoritesService.FollowOffer(id)) { return(this.ErrorPage()); } if (isDetails) { return(RedirectToPage("/OfferDetails", new { area = "Offers", id = id })); } if (isFavorites) { return(RedirectToPage("/Favorites", new { area = "Offers" })); } return(RedirectToPage("/Index")); }