Изменение названий и добавление интерфейса хранения

This commit is contained in:
Николай 2023-04-01 13:12:37 +04:00
parent 7bf1e108c3
commit a927f92a1c
28 changed files with 114 additions and 74 deletions

View File

@ -1,9 +1,9 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class BuildSearchModel : IBuildModel public class BuildBindingModel : IBuildModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,8 +1,8 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Enums; using HardwareShopDataModels.Enums;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class ClientBindingModel : IClientModel public class ClientBindingModel : IClientModel
{ {

View File

@ -1,10 +1,10 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class CommentSearchModel : ICommentModel public class CommentBindingModel : ICommentModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -5,9 +5,9 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class ComponentSearchModel : IComponentModel public class ComponentBindingModel : IComponentModel
{ {
public int Id { get; set; } public int Id { get; set; }
} }

View File

@ -1,4 +1,4 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -6,7 +6,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class GoodBindingModel : IGoodModel public class GoodBindingModel : IGoodModel
{ {

View File

@ -1,10 +1,10 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class OrderSearchModel : IOrderModel public class OrderBindingModel : IOrderModel
{ {
public int Id { get; set; } public int Id { get; set; }
} }

View File

@ -1,10 +1,10 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.BindingModels namespace HardwareShopContracts.BindingModels
{ {
public class PurachaseViewModel : IPurchaseModel public class PurchaseBindingModel : IPurchaseModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,7 +1,5 @@
using FoodOrdersDataModels.Models; using System.ComponentModel;
using HardwareShopDataModels.Models; namespace HardwareShopContracts.SearchModels
using System.ComponentModel;
namespace FoodOrdersContracts.SearchModels
{ {
public class BuildSearchModel public class BuildSearchModel
{ {

View File

@ -1,10 +1,9 @@
using FoodOrdersDataModels.Models; 
using HardwareShopDataModels.Enums;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class ClientViewModel public class ClientSearchModel
{ {
public int? Id { get; set; } public int? Id { get; set; }

View File

@ -1,8 +1,7 @@
using FoodOrdersDataModels.Models; 
using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class CommentSearchModel public class CommentSearchModel
{ {

View File

@ -1,11 +1,11 @@
using HardwareShopDataModels.Models; 
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class ComponentSearchModel public class ComponentSearchModel
{ {

View File

@ -1,14 +1,13 @@
using FoodOrdersDataModels.Enums; 
using HardwareShopDataModels.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class GoodViewModel public class GoodSearchModel
{ {
public int? Id { get; set; } public int? Id { get; set; }
} }

View File

@ -1,8 +1,6 @@
using FoodOrdersDataModels.Enums; 
using FoodOrdersDataModels.Models;
using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class OrderSearchModel public class OrderSearchModel
{ {

View File

@ -1,10 +1,8 @@
using FoodOrdersDataModels.Enums; 
using FoodOrdersDataModels.Models;
using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.SearchModels namespace HardwareShopContracts.SearchModels
{ {
public class PurachaseViewModel public class PurchaseSearchModel
{ {
public int? Id { get; set; } public int? Id { get; set; }
} }

View File

@ -0,0 +1,16 @@
using HardwareShopContracts.BindingModels;
using HardwareShopContracts.SearchModels;
using HardwareShopContracts.ViewModels;
namespace HardwareShopContracts.StoragesContracts
{
public interface IBuildStorage
{
List<BuildViewModel> GetFullList();
List<BuildViewModel> GetFilteredList(BuildSearchModel model);
BuildViewModel? GetElement(BuildSearchModel model);
BuildViewModel? Insert(BuildBindingModel model);
BuildViewModel? Update(BuildBindingModel model);
BuildViewModel? Delete(BuildBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using HardwareShopContracts.BindingModels;
using HardwareShopContracts.SearchModels;
using HardwareShopContracts.ViewModels;
namespace HardwareShopContracts.StoragesContracts
{
public interface ICommentStorage
{
List<CommentViewModel> GetFullList();
List<CommentViewModel> GetFilteredList(CommentSearchModel model);
CommentViewModel? GetElement(CommentSearchModel model);
CommentViewModel? Insert(CommentBindingModel model);
CommentViewModel? Update(CommentBindingModel model);
CommentViewModel? Delete(CommentBindingModel model);
}
}

View File

@ -0,0 +1,16 @@
using HardwareShopContracts.BindingModels;
using HardwareShopContracts.SearchModels;
using HardwareShopContracts.ViewModels;
namespace HardwareShopContracts.StoragesContracts
{
public interface IPurchaseStorage
{
List<PurchaseViewModel> GetFullList();
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
PurchaseViewModel? GetElement(PurchaseSearchModel model);
PurchaseViewModel? Insert(PurchaseBindingModel model);
PurchaseViewModel? Update(PurchaseBindingModel model);
PurchaseViewModel? Delete(PurchaseBindingModel model);
}
}

View File

@ -1,9 +1,8 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class BuildSearchModel : IBuildModel public class BuildViewModel : IBuildModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,10 +1,10 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Enums; using HardwareShopDataModels.Enums;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class ClientBindingModel : IClientModel public class ClientViewModel : IClientModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,10 +1,9 @@
using FoodOrdersDataModels.Models; using HardwareShopDataModels.Models;
using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class CommentSearchModel : ICommentModel public class CommentViewModel : ICommentModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -5,9 +5,9 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class ComponentSearchModel : IComponentModel public class ComponentViewModel : IComponentModel
{ {
public int Id { get; set; } public int Id { get; set; }
} }

View File

@ -1,4 +1,4 @@
using FoodOrdersDataModels.Enums; 
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -6,9 +6,9 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class GoodBindingModel : IGoodModel public class GoodViewModel : IGoodModel
{ {
public int Id { get; set; } public int Id { get; set; }
} }

View File

@ -1,10 +1,9 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using FoodOrdersDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class OrderSearchModel : IOrderModel public class OrderViewModel : IOrderModel
{ {
public int Id { get; set; } public int Id { get; set; }
} }

View File

@ -1,10 +1,9 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using FoodOrdersDataModels.Models;
using HardwareShopDataModels.Models; using HardwareShopDataModels.Models;
using System.ComponentModel; using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels namespace HardwareShopContracts.ViewModels
{ {
public class PurachaseViewModel : IPurchaseModel public class PurchaseViewModel : IPurchaseModel
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@ -1,4 +1,4 @@
namespace FoodOrdersDataModels.Enums namespace HardwareShopDataModels.Enums
{ {
public enum PurchaseStatus public enum PurchaseStatus
{ {

View File

@ -1,4 +1,4 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,7 +1,7 @@
using HardwareShopDataModels; using HardwareShopDataModels;
using HardwareShopDataModels.Enums; using HardwareShopDataModels.Enums;
namespace FoodOrdersDataModels.Models namespace HardwareShopDataModels.Models
{ {
public interface IClientModel : IId public interface IClientModel : IId
{ {

View File

@ -1,4 +1,4 @@
using FoodOrdersDataModels.Enums; using HardwareShopDataModels.Enums;
namespace HardwareShopDataModels.Models namespace HardwareShopDataModels.Models
{ {