Code cleanup
This commit is contained in:
@@ -6,13 +6,13 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
public interface IDataService<T>
|
||||
public interface IDataService<T>: IDisposable
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(int id,T entity);
|
||||
Task<T> Update(T entity);
|
||||
Task<bool> Delete(int id);
|
||||
T CreateNonAsync(T entity);
|
||||
//T CreateNonAsync(T entity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface ISchachtDataService : IDataService<Schacht>
|
||||
{
|
||||
Task<IEnumerable<Schacht>> GetAll(int projektID);
|
||||
Task<Schacht> GetSchachtByNameAndProjekt(string name, int projektID);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface ISchachtService
|
||||
{
|
||||
Task<Schacht> CreateSchacht(Projekt proj);
|
||||
Task<Schacht> FindSchachtByNameAndProjektID(string name, int projektID);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user