diff --git a/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs b/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs index 0430fc7..b9c205e 100644 --- a/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs +++ b/Back/skydiveLogs-api.DomainService/Repositories/IStatsRepository.cs @@ -1,13 +1,18 @@ using skydiveLogs_api.Domain; +using System.Collections.Generic; namespace skydiveLogs_api.DomainService.Repositories { - public interface IStatsRepository : IRepository + public interface IStatsRepository { #region Public Methods T GetAll(User user); + int Add(T newEntity); + + bool Update(T updated); + #endregion Public Methods } } \ No newline at end of file diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs index 4ef0320..63eb76c 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByAircraftRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByAircraft GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByAircraft GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByAircraft stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs index afa293f..784bc6d 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByDzRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByDz GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByDz GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByDz stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs index 6829e2f..b7a2476 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByGearRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByGear GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByGear GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByGear stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs index e584793..1cfa71c 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByJumpTypeRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByJumpType GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByJumpType GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByJumpType stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs index 1e1e634..b76daa9 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByYearByJumpTypeRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByYearByJumpType GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByYearByJumpType GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByYearByJumpType stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs index 4021fc8..b743c77 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsByYearRepository.cs @@ -2,7 +2,6 @@ using LiteDB; using skydiveLogs_api.Domain; using skydiveLogs_api.DomainService.Repositories; using skydiveLogs_api.Infrastructure.Interfaces; -using System.Collections.Generic; namespace skydiveLogs_api.Infrastructure { @@ -37,11 +36,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsByYear GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +44,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsByYear GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsByYear stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs index 1968380..ae6ad9b 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByDzRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsForLastMonthByDz GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsForLastMonthByDz GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsForLastMonthByDz stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs index fa7e46f..90d6dd4 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastMonthByJumpTypeRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsForLastMonthByJumpType GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsForLastMonthByJumpType GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsForLastMonthByJumpType stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs index 7aa8f7c..14e8814 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByDzRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsForLastYearByDz GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsForLastYearByDz GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsForLastYearByDz stats) { return _col.Update(stats); diff --git a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs index 512eb8e..c532267 100644 --- a/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs +++ b/Back/skydiveLogs-api.Infrastructure/StatsForLastYearByJumpTypeRepository.cs @@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure return result; } - public IEnumerable GetAll() - { - throw new System.NotImplementedException(); - } - public StatsForLastYearByJumpType GetAll(User user) { return _col.Include(x => x.User) @@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure .SingleOrDefault(); } - public StatsForLastYearByJumpType GetById(int id) - { - throw new System.NotImplementedException(); - } - - public int GetCount() - { - throw new System.NotImplementedException(); - } - public bool Update(StatsForLastYearByJumpType stats) { return _col.Update(stats);