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; } /// /// Makes a copy /// public void Copy(BookingText target) { target.Id = Id; target.Text = Text; } } }