Изменение названий и добавление интерфейса хранения
This commit is contained in:
parent
7bf1e108c3
commit
a927f92a1c
@ -1,9 +1,9 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class BuildSearchModel : IBuildModel
|
||||
public class BuildBindingModel : IBuildModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class ClientBindingModel : IClientModel
|
||||
{
|
||||
|
@ -1,10 +1,10 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class CommentSearchModel : ICommentModel
|
||||
public class CommentBindingModel : ICommentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -5,9 +5,9 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class ComponentSearchModel : IComponentModel
|
||||
public class ComponentBindingModel : IComponentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class GoodBindingModel : IGoodModel
|
||||
{
|
||||
|
@ -1,10 +1,10 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class OrderSearchModel : IOrderModel
|
||||
public class OrderBindingModel : IOrderModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.BindingModels
|
||||
namespace HardwareShopContracts.BindingModels
|
||||
{
|
||||
public class PurachaseViewModel : IPurchaseModel
|
||||
public class PurchaseBindingModel : IPurchaseModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
using System.ComponentModel;
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class BuildSearchModel
|
||||
{
|
||||
|
@ -1,10 +1,9 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class ClientViewModel
|
||||
public class ClientSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class CommentSearchModel
|
||||
{
|
||||
|
@ -1,11 +1,11 @@
|
||||
using HardwareShopDataModels.Models;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class ComponentSearchModel
|
||||
{
|
||||
|
@ -1,14 +1,13 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class GoodViewModel
|
||||
public class GoodSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class OrderSearchModel
|
||||
{
|
||||
|
@ -1,10 +1,8 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.SearchModels
|
||||
namespace HardwareShopContracts.SearchModels
|
||||
{
|
||||
public class PurachaseViewModel
|
||||
public class PurchaseSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -1,9 +1,8 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class BuildSearchModel : IBuildModel
|
||||
public class BuildViewModel : IBuildModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class ClientBindingModel : IClientModel
|
||||
public class ClientViewModel : IClientModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class CommentSearchModel : ICommentModel
|
||||
public class CommentViewModel : ICommentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -5,9 +5,9 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class ComponentSearchModel : IComponentModel
|
||||
public class ComponentViewModel : IComponentModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
|
||||
using HardwareShopDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -6,9 +6,9 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class GoodBindingModel : IGoodModel
|
||||
public class GoodViewModel : IGoodModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -1,10 +1,9 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class OrderSearchModel : IOrderModel
|
||||
public class OrderViewModel : IOrderModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -1,10 +1,9 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using FoodOrdersDataModels.Models;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using HardwareShopDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
namespace FoodOrdersContracts.ViewModels
|
||||
namespace HardwareShopContracts.ViewModels
|
||||
{
|
||||
public class PurachaseViewModel : IPurchaseModel
|
||||
public class PurchaseViewModel : IPurchaseModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace FoodOrdersDataModels.Enums
|
||||
namespace HardwareShopDataModels.Enums
|
||||
{
|
||||
public enum PurchaseStatus
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using HardwareShopDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -1,7 +1,7 @@
|
||||
using HardwareShopDataModels;
|
||||
using HardwareShopDataModels.Enums;
|
||||
|
||||
namespace FoodOrdersDataModels.Models
|
||||
namespace HardwareShopDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
using FoodOrdersDataModels.Enums;
|
||||
using HardwareShopDataModels.Enums;
|
||||
|
||||
namespace HardwareShopDataModels.Models
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user