ScientificReport
IScientificInternshipService.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Security.Claims;
7 
8 namespace ScientificReport.BLL.Interfaces
9 {
11  {
12  IEnumerable<ScientificInternship> GetAll();
13  IEnumerable<ScientificInternship> GetAllWhere(Func<ScientificInternship, bool> predicate);
14  IEnumerable<ScientificInternship> GetItemsByRole(ClaimsPrincipal userClaims);
15  IEnumerable<ScientificInternship> GetPageByRole(int page, int count, ClaimsPrincipal userClaims);
16  int GetCountByRole(ClaimsPrincipal userClaims);
17  ScientificInternship GetById(Guid id);
18  ScientificInternship Get(Func<ScientificInternship, bool> predicate);
19  void CreateItem(ScientificInternshipModel model);
20  void UpdateItem(ScientificInternshipEditModel model);
21  void DeleteById(Guid id);
22  bool Exists(Guid id);
23  void AddUser(ScientificInternship scientificInternship, UserProfile user);
24  void RemoveUser(ScientificInternship scientificInternship, UserProfile user);
25  IEnumerable<UserProfile> GetUsers(Guid id);
26  }
27 }