ScientificReport
IOppositionService.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Security.Claims;
6 
7 namespace ScientificReport.BLL.Interfaces
8 {
9  public interface IOppositionService
10  {
11  IEnumerable<Opposition> GetAll();
12  IEnumerable<Opposition> GetAllWhere(Func<Opposition, bool> predicate);
13  IEnumerable<Opposition> GetItemsByRole(ClaimsPrincipal userClaims);
14  IEnumerable<Opposition> GetPageByRole(int page, int count, ClaimsPrincipal userClaims);
15  int GetCountByRole(ClaimsPrincipal userClaims);
16  Opposition GetById(Guid id);
17  Opposition Get(Func<Opposition, bool> predicate);
18  void CreateItem(OppositionModel model);
19  void UpdateItem(OppositionEditModel model);
20  void DeleteById(Guid id);
21  bool Exists(Guid id);
22  }
23 }