Auto clean code
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
using skydiveLogs_api.Domain;
|
||||
|
||||
|
||||
namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IAircraftRepository : IRepository<Aircraft>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
using skydiveLogs_api.Domain;
|
||||
|
||||
|
||||
namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IDropZoneRepository : IRepository<DropZone>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,9 +5,12 @@ namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IFavoriteDropZoneRepository : IRepository<FavoriteDropZone>
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
int Delete(int dropZoneId, int userId);
|
||||
|
||||
IEnumerable<FavoriteDropZone> GetAll(User user);
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,10 @@ namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IGearRepository : IRepository<Gear>
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
IEnumerable<Gear> GetAll(User connectedUser);
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,12 @@ namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IJumpRepository : IRepository<Jump>
|
||||
{
|
||||
IEnumerable<Jump> GetAll(User user);
|
||||
#region Public Methods
|
||||
|
||||
bool DeleteById(int id);
|
||||
|
||||
IEnumerable<Jump> GetAll(User user);
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
using skydiveLogs_api.Domain;
|
||||
|
||||
|
||||
namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IJumpTypeRepository : IRepository<JumpType>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,16 @@ namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IRepository<T>
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
int Add(T newEntity);
|
||||
|
||||
IEnumerable<T> GetAll();
|
||||
|
||||
T GetById(int id);
|
||||
|
||||
bool Update(T updated);
|
||||
|
||||
int Add(T newEntity);
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using skydiveLogs_api.Domain;
|
||||
|
||||
using skydiveLogs_api.Domain;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IUserImageRepository : IRepository<UserImage>
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
IEnumerable<UserImage> GetAll(User user);
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
using skydiveLogs_api.Domain;
|
||||
|
||||
|
||||
namespace skydiveLogs_api.DomainService.Repositories
|
||||
{
|
||||
public interface IUserRepository : IRepository<User>
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
User GetByLogin(string login, string password);
|
||||
|
||||
#endregion Public Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user