public static AireModel ToModel(this Aire dto)
        {
            AireModel result = new AireModel();

            result.Id          = dto.Id;
            result.CoupeId     = dto.CoupeId;
            result.Description = dto.Description;
            result.NetClientId = dto.NetClientId;
            if (dto.Epreuves != null && dto.Epreuves.Count() > 0)
            {
                result.EpreuveId = dto.Epreuves.FirstOrDefault().Id.ToString();
            }
            else
            {
                result.EpreuveId = string.Empty;
            }

            return(result);
        }
예제 #2
0
 public bool Delete(Aire entity)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public bool Insert(Aire entity)
 {
     throw new NotImplementedException();
 }