using DynamicData; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AvaloniaApplication5.Models { public partial class Teacher { public string stazh { get { int yearr = 0; int monthr = 0; yearr = Convert.ToInt32(Experience) / 12; monthr = Convert.ToInt32(Experience) % 12; if (monthr > 0) { return yearr + " года(лет) " + monthr + " месяцев(а)"; } else { return yearr + " года(лет) "; } } } } }