24 lines
531 B
C#
24 lines
531 B
C#
|
using ComputerStoreDataModels.Models;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ComputerStoreContracts.ViewModels
|
|||
|
{
|
|||
|
public class ComponentViewModel : IComponentModel
|
|||
|
{
|
|||
|
public int ID {get; set;}
|
|||
|
|
|||
|
[DisplayName("Component's name")]
|
|||
|
public string Name { get; set; } = string.Empty;
|
|||
|
|
|||
|
[DisplayName("Component's price")]
|
|||
|
public double Price { get; set; }
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|