Модели и контракты готовы
This commit is contained in:
parent
ec094204f8
commit
6396dcaf90
@ -22,5 +22,6 @@ namespace FishFactoryContracts.BindingModels
|
|||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
} = new();
|
} = new();
|
||||||
|
public int MaxCountCanneds { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,7 @@ namespace FishFactoryContracts.BusinessLogicsContracts
|
|||||||
bool Update(ShopBindingModel model);
|
bool Update(ShopBindingModel model);
|
||||||
bool Delete(ShopBindingModel model);
|
bool Delete(ShopBindingModel model);
|
||||||
bool AddCannedInShop(ShopSearchModel model, ICannedModel canned, int count);
|
bool AddCannedInShop(ShopSearchModel model, ICannedModel canned, int count);
|
||||||
|
bool AddCanneds(ICannedModel canned, int count);
|
||||||
|
bool SellCanneds(ICannedModel canned, int count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
using FishFactoryContracts.BindingModels;
|
using FishFactoryContracts.BindingModels;
|
||||||
using FishFactoryContracts.SearchModels;
|
using FishFactoryContracts.SearchModels;
|
||||||
using FishFactoryContracts.ViewModels;
|
using FishFactoryContracts.ViewModels;
|
||||||
|
using FishFactoryDataModels.Models;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -17,5 +18,6 @@ namespace FishFactoryContracts.StoragesContracts
|
|||||||
ShopViewModel? Insert(ShopBindingModel model);
|
ShopViewModel? Insert(ShopBindingModel model);
|
||||||
ShopViewModel? Update(ShopBindingModel model);
|
ShopViewModel? Update(ShopBindingModel model);
|
||||||
ShopViewModel? Delete(ShopBindingModel model);
|
ShopViewModel? Delete(ShopBindingModel model);
|
||||||
|
bool SellCanneds(ICannedModel model, int count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,9 @@ namespace FishFactoryContracts.ViewModels
|
|||||||
[DisplayName("Дата открытия")]
|
[DisplayName("Дата открытия")]
|
||||||
public DateTime DateOpening { get; set; } = DateTime.Now;
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
||||||
|
|
||||||
|
[DisplayName("Максимальное количество консерв")]
|
||||||
|
public int MaxCountCanneds { get; set; }
|
||||||
|
|
||||||
public Dictionary<int, (ICannedModel, int)> ListCanneds
|
public Dictionary<int, (ICannedModel, int)> ListCanneds
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
|
@ -13,5 +13,6 @@ namespace FishFactoryDataModels
|
|||||||
string Address { get; }
|
string Address { get; }
|
||||||
DateTime DateOpening { get; }
|
DateTime DateOpening { get; }
|
||||||
Dictionary<int, (ICannedModel, int)> ListCanneds { get; }
|
Dictionary<int, (ICannedModel, int)> ListCanneds { get; }
|
||||||
|
int MaxCountCanneds { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user