AccountingNext/Schaad.Accounting.Common/Models/BookingText.cs

23 lines
No EOL
488 B
C#

using System.ComponentModel.DataAnnotations;
namespace Schaad.Accounting.Models
{
public class BookingText
{
public string Id { get; set; }
[Display(Name = "Buchungstext")]
[Required]
[MinLength(3)]
public string Text { get; set; }
/// <summary>
/// Makes a copy
/// </summary>
public void Copy(BookingText target)
{
target.Id = Id;
target.Text = Text;
}
}
}