обновки до дев #16
17
Contracts/BusinessLogicContracts/IProductLogic.cs
Normal file
17
Contracts/BusinessLogicContracts/IProductLogic.cs
Normal file
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
14
Contracts/SearchModels/MediaFileSearchModel.cs
Normal file
14
Contracts/SearchModels/MediaFileSearchModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
16
Contracts/SearchModels/SupplierSearchModel.cs
Normal file
16
Contracts/SearchModels/SupplierSearchModel.cs
Normal file
@ -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<ProductSearchModel>? AvailibleProducts { get; set; }
|
||||||
|
public int? Deals { get; set; }
|
||||||
|
}
|
||||||
|
}
|
15
Contracts/SearchModels/SupplyDocSearchModel.cs
Normal file
15
Contracts/SearchModels/SupplyDocSearchModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
16
Contracts/SearchModels/SupplySearchModel.cs
Normal file
16
Contracts/SearchModels/SupplySearchModel.cs
Normal file
@ -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<ProductSearchModel>? Products { get; set; }
|
||||||
|
public DateTime? DateStart { get; set; }
|
||||||
|
public DateTime? DateEnd { get; set; }
|
||||||
|
}
|
||||||
|
}
|
14
Contracts/ViewModels/MediaFileViewModel.cs
Normal file
14
Contracts/ViewModels/MediaFileViewModel.cs
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
17
Contracts/ViewModels/ProductViewModel.cs
Normal file
17
Contracts/ViewModels/ProductViewModel.cs
Normal file
@ -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<MediaFileViewModel> MediaFiles { get; set; } = new();
|
||||||
|
}
|
||||||
|
}
|
15
Contracts/ViewModels/SupplierViewModel.cs
Normal file
15
Contracts/ViewModels/SupplierViewModel.cs
Normal file
@ -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<string, int> AvailibleProducts = new();
|
||||||
|
}
|
||||||
|
}
|
14
Contracts/ViewModels/SupplyDocViewModel.cs
Normal file
14
Contracts/ViewModels/SupplyDocViewModel.cs
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
19
Contracts/ViewModels/SupplyViewModel.cs
Normal file
19
Contracts/ViewModels/SupplyViewModel.cs
Normal file
@ -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<Guid, string> Products { get; set; } = new();
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public SupplyStatus Status { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user