You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
796 B

11 years ago
11 years ago
11 years ago
11 years ago
  1. using System.Linq;
  2. namespace Sevomin.Models.Repositories
  3. {
  4. public interface IRepository<K, T>
  5. {
  6. void Add(T entity);
  7. T Find(K identifier);
  8. void Delete(T entity);
  9. void Save();
  10. }
  11. public interface IUserRepository : IRepository<string, User>
  12. {
  13. User FindWithConfirmationCode(string code);
  14. IQueryable<User> ListAll();
  15. }
  16. public interface IJobRepository : IRepository<long ,Job>
  17. {
  18. Job GetEmptyJobFor(Avalin avalin);
  19. IQueryable<Job> ListAll();
  20. DovominJob Apply(Dovomin dovomin, Job job, string coverLetter);
  21. }
  22. public interface IParameterRepository : IRepository<long, Parameter>
  23. {
  24. IQueryable<Parameter> ListAll();
  25. void AddParametersToDovomin(Dovomin dovomin);
  26. }
  27. }