﻿using System;

namespace DynamicDirectory.Core.Model
{
    [Serializable]
    public class ContentTypeModel : BaseModel
    {
        #region Properties
        private int _id;
        private string _name;

        public int Id
        {
            get { return _id; }
            set
            {
                OnPropertyChanging(nameof(Id));
                _id = value;
                OnPropertyChanged(nameof(Id));
            }
        }

        public string Name
        {
            get { return _name; }
            set
            {
                OnPropertyChanging(nameof(Name));
                _name = value;
                OnPropertyChanged(nameof(Name));
            }
        }
        #endregion

        #region Contructors

        public ContentTypeModel(int id, string name)
        {
            Id = id;
            Name = name;
        }

        public ContentTypeModel() : this(0, string.Empty)
        {
        }

        #endregion
    }
}
