using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace GreenTree.Strohrmann.ERP.Web.Models.Business { public class TitleModel { #region Properties /// /// Tax id /// [Display(Name = "ID")] public int Id { get; set; } /// /// Tax name /// [Display(Name = "Name")] public string Name { get; set; } #endregion #region Ctor /// /// Initializes a new instance of the TitleModel class /// public TitleModel() { } /// /// Initializes a new instance of the TitleModel class /// /// Base tax entity. public TitleModel(Core.Domain.Business.Title title) { if (title == null) return; Id = title.Id; Name = title.Name; } #endregion #region Overrides /// /// Returns a string that represents the current object with its' name /// public override string ToString() { return Name; } #endregion } }