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 TaxModel
{
#region Properties
///
/// Tax id
///
[Display(Name = "ID")]
public int Id { get; set; }
///
/// Tax name
///
[Display(Name = "Name")]
public string Name { get; set; }
///
/// Tax short name
///
[Display(Name = "Kurzname")]
public string ShortName { get; set; }
///
/// Tax percentage value
///
[Display(Name = "Steuersatz (in %)")]
public decimal Value { get; set; }
#endregion
#region Ctor
///
/// Initializes a new instance of the TaxModel class
///
public TaxModel() { }
///
/// Initializes a new instance of the TaxModel class
///
/// Base tax entity.
public TaxModel(Core.Domain.Business.Tax tax)
{
if (tax == null) return;
Id = tax.Id;
Name = tax.Name;
ShortName = tax.ShortName;
Value = tax.Value;
}
#endregion
}
}