Created and implemented StockDal.InterFace
This commit is contained in:
14
StockDal.Interface/IProductRepository.cs
Normal file
14
StockDal.Interface/IProductRepository.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using StockDomain;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace StockDal.Interface
|
||||
{
|
||||
public interface IProductRepository
|
||||
{
|
||||
IEnumerable<Product> GetProducts();
|
||||
bool Insert(Product product);
|
||||
bool Update(Product product);
|
||||
bool Delete(string productId);
|
||||
}
|
||||
}
|
||||
11
StockDal.Interface/StockDal.Interface.csproj
Normal file
11
StockDal.Interface/StockDal.Interface.csproj
Normal file
@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\StockDomain\StockDomain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user