diff --git a/FishFactoryContracts/BindingModels/ShopBindingModel.cs b/FishFactoryContracts/BindingModels/ShopBindingModel.cs new file mode 100644 index 0000000..7183ee7 --- /dev/null +++ b/FishFactoryContracts/BindingModels/ShopBindingModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using FishFactoryDataModel.Models; + +namespace FishFactoryContracts.BindingModels +{ + public class ShopBindingModel + { + public int Id { get; set; } + public string ShopName { get; set; } = string.Empty; + public string Adress { get; set; } = string.Empty; + public DateTime OpeningDate { get; set; } = DateTime.Now; + public Dictionary ShopCanneds { get; set; } = new(); + } +} diff --git a/FishFactoryContracts/BindingModels/ShopCannedBindingModel.cs b/FishFactoryContracts/BindingModels/ShopCannedBindingModel.cs new file mode 100644 index 0000000..e8861c6 --- /dev/null +++ b/FishFactoryContracts/BindingModels/ShopCannedBindingModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.BindingModels +{ + public class ShopCannedBindingModel + { + public int ShopId { get; set; } + public int CannedId { get; set; } + public int Count { get; set; } + } +} diff --git a/FishFactoryContracts/BusinessLogicsContracts/IShopLogic.cs b/FishFactoryContracts/BusinessLogicsContracts/IShopLogic.cs new file mode 100644 index 0000000..27854e1 --- /dev/null +++ b/FishFactoryContracts/BusinessLogicsContracts/IShopLogic.cs @@ -0,0 +1,21 @@ +using FishFactoryContracts.BindingModels; +using FishFactoryContracts.SearchModels; +using FishFactoryContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.BusinessLogicsContracts +{ + public interface IShopLogic + { + List? ReadList(ShopSearchModel? model); + ShopViewModel? ReadElement(ShopSearchModel model); + bool Create(ShopBindingModel model); + bool Update(ShopBindingModel model); + bool Delete(ShopBindingModel model); + bool MakeSupply(ShopCannedBindingModel model); + } +} diff --git a/FishFactoryContracts/SearchModels/ShopSearchModel.cs b/FishFactoryContracts/SearchModels/ShopSearchModel.cs new file mode 100644 index 0000000..1bc6f33 --- /dev/null +++ b/FishFactoryContracts/SearchModels/ShopSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.SearchModels +{ + internal class ShopSearchModel + { + punlic int? Id { get; set; } + public string ShopName { get; set; } + } +} diff --git a/FishFactoryContracts/StoragesContracts/IShopCannedStorage.cs b/FishFactoryContracts/StoragesContracts/IShopCannedStorage.cs new file mode 100644 index 0000000..ae176ff --- /dev/null +++ b/FishFactoryContracts/StoragesContracts/IShopCannedStorage.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.StoragesContracts +{ + internal interface IShopCannedStorage + { + } +} diff --git a/FishFactoryContracts/StoragesContracts/IShopStorage.cs b/FishFactoryContracts/StoragesContracts/IShopStorage.cs new file mode 100644 index 0000000..0eb9b09 --- /dev/null +++ b/FishFactoryContracts/StoragesContracts/IShopStorage.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.StoragesContracts +{ + public interface IShopStorage + { + } +} diff --git a/FishFactoryContracts/ViewModels/ShopViewModel.cs b/FishFactoryContracts/ViewModels/ShopViewModel.cs new file mode 100644 index 0000000..968df1e --- /dev/null +++ b/FishFactoryContracts/ViewModels/ShopViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryContracts.ViewModels +{ + internal class ShopViewModel + { + } +} diff --git a/FishFactoryDataModels/FishFactoryDataModel.csproj b/FishFactoryDataModels/FishFactoryDataModel.csproj index e30cfc1..4e12194 100644 --- a/FishFactoryDataModels/FishFactoryDataModel.csproj +++ b/FishFactoryDataModels/FishFactoryDataModel.csproj @@ -7,8 +7,4 @@ AnyCPU;x86 - - - - diff --git a/FishFactoryDataModels/Models/IShopCannedModel.cs b/FishFactoryDataModels/Models/IShopCannedModel.cs new file mode 100644 index 0000000..aa84a61 --- /dev/null +++ b/FishFactoryDataModels/Models/IShopCannedModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryDataModel.Models +{ + public interface IShopCannedModel + { + int ShopId { get; } + int CannedId { get; } + int Count { get; } + } +} diff --git a/FishFactoryDataModels/Models/IShopModel.cs b/FishFactoryDataModels/Models/IShopModel.cs new file mode 100644 index 0000000..1389ba6 --- /dev/null +++ b/FishFactoryDataModels/Models/IShopModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FishFactoryDataModel.Models +{ + public interface IShopModel : IId + { + string ShopName { get; } + string Adress { get; } + DateTime OpeningDate { get; } + Dictionary ShopCanneds { get; } + } +}