2023-10-23 16:21:36 +04:00
|
|
|
|
using DataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Contracts.ViewModel
|
|
|
|
|
{
|
2023-10-24 00:00:25 +04:00
|
|
|
|
public class DisciplineViewModel : IDiscipline
|
2023-10-23 16:21:36 +04:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2023-10-24 00:00:25 +04:00
|
|
|
|
public string Name { get; set; } = string.Empty;
|
2023-10-23 16:21:36 +04:00
|
|
|
|
|
|
|
|
|
public DisciplineViewModel() { }
|
|
|
|
|
|
|
|
|
|
public DisciplineViewModel(IDiscipline discipline)
|
|
|
|
|
{
|
|
|
|
|
Id = discipline.Id;
|
|
|
|
|
Name = discipline.Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|