add crud
This commit is contained in:
21
HanyadikHetVan/Interface/IRepository.cs
Normal file
21
HanyadikHetVan/Interface/IRepository.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HanyadikHetVan.Interface
|
||||
{
|
||||
public interface IRepository<T>
|
||||
{
|
||||
public Task<T> Create(T _object);
|
||||
|
||||
public void Update(T _object);
|
||||
|
||||
public IEnumerable<T> GetAll();
|
||||
|
||||
public T GetById(int Id);
|
||||
|
||||
public void Delete(T _object);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user