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
710 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. }
  14. public interface IJobRepository : IRepository<long ,Job>
  15. {
  16. Job GetEmptyJobFor(Avalin avalin);
  17. IQueryable<Job> ListAll();
  18. DovominJob Apply(Dovomin dovomin, Job job, string coverLetter);
  19. }
  20. public interface IParameterRepository : IRepository<long, Parameter>
  21. {
  22. IQueryable<Parameter> ListAll();
  23. void AddParametersToDovomin(Dovomin dovomin);
  24. }
  25. }