diff --git a/Contracts/BusinessLogicContracts/IProductLogic.cs b/Contracts/BusinessLogicContracts/IProductLogic.cs new file mode 100644 index 0000000..b19b8e8 --- /dev/null +++ b/Contracts/BusinessLogicContracts/IProductLogic.cs @@ -0,0 +1,17 @@ +using Contracts.BindingModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.BusinessLogicContracts +{ + public interface IProductLogic + { + bool Create(ProductBindingModel model); + bool Update(ProductBindingModel model); + bool Delete(ProductBindingModel model); + + } +} diff --git a/Contracts/SearchModels/MediaFileSearchModel.cs b/Contracts/SearchModels/MediaFileSearchModel.cs new file mode 100644 index 0000000..7c81b55 --- /dev/null +++ b/Contracts/SearchModels/MediaFileSearchModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class MediaFileSearchModel + { + public Guid? Id { get; set; } + public Guid? ProductId { get; set; } + } +} diff --git a/Contracts/SearchModels/SupplierSearchModel.cs b/Contracts/SearchModels/SupplierSearchModel.cs new file mode 100644 index 0000000..2082afa --- /dev/null +++ b/Contracts/SearchModels/SupplierSearchModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class SupplierSearchModel + { + public Guid? Id { get; set; } + public string? Name { get; set; } + public List? AvailibleProducts { get; set; } + public int? Deals { get; set; } + } +} diff --git a/Contracts/SearchModels/SupplyDocSearchModel.cs b/Contracts/SearchModels/SupplyDocSearchModel.cs new file mode 100644 index 0000000..017227a --- /dev/null +++ b/Contracts/SearchModels/SupplyDocSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class SupplyDocSearchModel + { + public Guid? Id { get; set; } + public string? Name { get; set; } + public Guid? SupplyId { get; set; } + } +} diff --git a/Contracts/SearchModels/SupplySearchModel.cs b/Contracts/SearchModels/SupplySearchModel.cs new file mode 100644 index 0000000..9f50d53 --- /dev/null +++ b/Contracts/SearchModels/SupplySearchModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.SearchModels +{ + public class SupplySearchModel + { + public Guid? Id { get; set; } + public List? Products { get; set; } + public DateTime? DateStart { get; set; } + public DateTime? DateEnd { get; set; } + } +} diff --git a/Contracts/ViewModels/MediaFileViewModel.cs b/Contracts/ViewModels/MediaFileViewModel.cs new file mode 100644 index 0000000..d2ca0f6 --- /dev/null +++ b/Contracts/ViewModels/MediaFileViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class MediaFileViewModel + { + public Guid Id { get; set; } + public string Location { get; set; } = string.Empty; + } +} diff --git a/Contracts/ViewModels/ProductViewModel.cs b/Contracts/ViewModels/ProductViewModel.cs new file mode 100644 index 0000000..4a5d4fd --- /dev/null +++ b/Contracts/ViewModels/ProductViewModel.cs @@ -0,0 +1,17 @@ +using DataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class ProductViewModel + { + public Guid Id { get; set; } + public string Name { get; set; } = string.Empty; + public int Price { get; set; } + public List MediaFiles { get; set; } = new(); + } +} diff --git a/Contracts/ViewModels/SupplierViewModel.cs b/Contracts/ViewModels/SupplierViewModel.cs new file mode 100644 index 0000000..337dc1d --- /dev/null +++ b/Contracts/ViewModels/SupplierViewModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class SupplierViewModel + { + public Guid Id { get; set; } + public string Name { get; set; } = string.Empty; + public Dictionary AvailibleProducts = new(); + } +} diff --git a/Contracts/ViewModels/SupplyDocViewModel.cs b/Contracts/ViewModels/SupplyDocViewModel.cs new file mode 100644 index 0000000..7f8a084 --- /dev/null +++ b/Contracts/ViewModels/SupplyDocViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class SupplyDocViewModel + { + public Guid Id { get; set; } + public string Name { get; set; } = string.Empty; + } +} diff --git a/Contracts/ViewModels/SupplyViewModel.cs b/Contracts/ViewModels/SupplyViewModel.cs new file mode 100644 index 0000000..9dca657 --- /dev/null +++ b/Contracts/ViewModels/SupplyViewModel.cs @@ -0,0 +1,19 @@ +using DataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.ViewModels +{ + public class SupplyViewModel + { + public Guid Id { get; set; } + public string SupplierName { get; set; } = string.Empty; + public double Price { get; set; } + public Dictionary Products { get; set; } = new(); + public DateTime Date { get; set; } + public SupplyStatus Status { get; set; } + } +}