ScientificReport
IArticleService.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
5 
6 namespace ScientificReport.BLL.Interfaces
7 {
8  public interface IArticleService
9  {
10  IEnumerable<Article> GetPage(int page, int count);
11  int GetCount();
12  IEnumerable<Article> GetAll();
13  IEnumerable<Article> GetAllWhere(Func<Article, bool> predicate);
14  Article GetById(Guid id);
15  Article Get(Func<Article, bool> predicate);
16  void CreateItem(Article article);
17  void UpdateItem(Article article);
18  void DeleteById(Guid id);
19  bool Exists(Guid id);
20  void AddAuthor(Article article, UserProfile user);
21  void RemoveAuthor(Article article, UserProfile user);
22  IEnumerable<UserProfile> GetAuthors(Guid id);
23  }
24 }