using GreenTree.Strohrmann.ERP.Core.Domain.Business;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GreenTree.Strohrmann.ERP.Web.Models.Business
{
public class UnitModel
{
#region Properties
///
/// Unit id
///
public int Id { get; set; }
///
/// Unit name
///
public string Name { get; set; }
///
/// Unit short name
///
public string ShortName { get; set; }
///
/// Unit description
///
public string Description { get; set; }
#endregion
#region Ctor
///
/// Initializes a new instance of the UnitModel class
///
public UnitModel() { }
///
/// Initializes a new instance of the UnitModel class
///
/// The base unit.
public UnitModel(Unit unit)
{
if (unit == null) return;
Id = unit.Id;
Name = unit.Name;
ShortName = unit.ShortName;
Description = unit.Description;
}
#endregion
}
}