Code cleanup

This commit is contained in:
2023-04-12 22:29:49 +02:00
parent b100eca490
commit 7a036b3404
22 changed files with 184 additions and 183 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}