Add project files.
This commit is contained in:
17
OemanTrader.Domain/Services/IDataService.cs
Normal file
17
OemanTrader.Domain/Services/IDataService.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OemanTrader.Domain.Services
|
||||
{
|
||||
public interface IDataService<T>
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(int Id, T entity);
|
||||
Task<bool> Delete(int Id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user