private bool ExistLike(ArticleLikeViewModel model)
 {
     return(_article.Get(model)
            .GetAwaiter()
            .GetResult() != null);
 }
Ejemplo n.º 2
0
 public void OnGet(long id)
 {
     Article           = _articleApplication.Get(id);
     ArticleCategories = _articleCategoryApplication.List()
                         .Select(x => new SelectListItem(x.Title, x.Id.ToString())).ToList();
 }