секрте
This commit is contained in:
parent
188d246b30
commit
3e5221a9d1
@ -8,8 +8,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace PlumbingRepairContracts.BindingModels
|
namespace PlumbingRepairContracts.BindingModels
|
||||||
{
|
{
|
||||||
public class ShopBindingModel
|
public class ShopBindingModel : IShopModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
public string ShopName { get; set; } =string.Empty;
|
public string ShopName { get; set; } =string.Empty;
|
||||||
|
@ -4,8 +4,8 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace PlumbingRepairContracts.ViewModels
|
namespace PlumbingRepairContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class ShopViewModel
|
public class ShopViewModel : IShopModel
|
||||||
{
|
{
|
||||||
[Column(visible: false)]
|
[Column(visible: false)]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
namespace PlumbingRepairDataModels.Models
|
namespace PlumbingRepairDataModels.Models
|
||||||
{
|
{
|
||||||
public class IShopModel
|
public interface IShopModel: IId
|
||||||
{
|
{
|
||||||
string ShopName { get; }
|
string ShopName { get; }
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ using System.Runtime.Serialization;
|
|||||||
namespace PlumbingRepairDatabaseImplement.Models
|
namespace PlumbingRepairDatabaseImplement.Models
|
||||||
{
|
{
|
||||||
[DataContract]
|
[DataContract]
|
||||||
public class Shop
|
public class Shop : IShopModel
|
||||||
{
|
{
|
||||||
[DataMember]
|
[DataMember]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user