using System;
using System.ComponentModel.DataAnnotations;

namespace WK5.Core.Models.Lager
{
    public class PaketInput
    {
        private string _trackingnummer = String.Empty;

        public int Paketnummer { get; set; }
        [Required]
        [Range(0.1, 500)]
        public decimal Gewicht { get; set; }
        public string Trackingnummer { get => _trackingnummer; set => _trackingnummer = value is null ? String.Empty : value.Trim(); }
    }
}
