Esempio n. 1
0
 public static DocumentViewData Create(Data.AcademicBenchmark.Model.Document model)
 {
     return(new DocumentViewData
     {
         Id = model.Id,
         Code = model.Code,
         Description = model.Title
     });
 }
Esempio n. 2
0
 public static StandardInfo Create(Data.AcademicBenchmark.Model.Standard model,
                                   Data.AcademicBenchmark.Model.Authority authority,
                                   Data.AcademicBenchmark.Model.Document document)
 {
     return(new StandardInfo
     {
         Id = model.Id,
         Description = model.Description,
         Code = model.Number,
         IsActive = model.IsActive,
         IsDeepest = model.IsDeepest,
         Level = model.Level,
         ParentId = model.ParentRef,
         Authority = authority,
         Document = document
     });
 }