public async Task <IActionResult> Like(string PostId, [Bind("PostId")] LikeViewModel model) { var user = await this.userManager.GetUserAsync(User); var success = await likesService.Like(model.PostId, user); if (!success) { return(BadRequest()); } return(RedirectToAction("AllQuotes", "Posts", new { orderColumn = "Likes", type = "Asc" })); }