Пример #1
0
 internal static ResponseEnvelopeWithDataResult <List <BaseDataModel> > GetDataModels()
 {
     return(new ResponseEnvelopeWithDataResult <List <BaseDataModel> >()
     {
         DataResult = ScaleModelProjectTypeManager.GetEntities().ConvertToDataModels().ConvertAll(x => (BaseDataModel)x)
     });
 }
Пример #2
0
 internal static ResponseEnvelopeWithDataResult <BaseDataModel> GetLatestDataModel()
 {
     return(new ResponseEnvelopeWithDataResult <BaseDataModel>()
     {
         DataResult = ScaleModelProjectTypeManager.GetEntities().OrderByDescending(x => x.DateCreated).FirstOrDefault().ConvertToDataModel()
     });
 }