using System.Collections.Generic;
using System.Linq;

namespace ListLabelObjects.Models
{
    internal class Project
    {
        public string ProjectNumber { get; set; }
        public string ProjectName { get; set; }

        public double WorkingHoursDuration => WorkingHours.Sum(wh => wh.Duration);

        public List<WorkingHour> WorkingHours { get; set; }
    }
}
