aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/PublishedTestProject.cs
blob: 46cf1c742bd5c9840e6c863721ca2cc87743c0dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.BL.Entities
{
    public class PublishedTestProject : PublishedTestProjectBase
    {
        [NotMapped]
        [JsonIgnore]
        public PublishedTestProjectsVersion CurrentVersion
        {
            get
            {
                return PublishedTestProjectsVersions.OrderBy(x => x.Version).LastOrDefault();
            }
        }
    }
}