public async Task <IActionResult> AddArticleLike(ArticleViewModel model) { int limit = userIdentity.GetLikeLimit(); if (limit == 0) { model.LikeLimitReached = true; return(View("Article", model)); } userIdentity.ReduceLikeLimit(); model.NumberOfLikes++; var mappedEntity = mapper.Map <ArticleViewModel, Article>(model); await articleService.UpdateArticle(mappedEntity); return(RedirectToAction("Article", model)); }