Ejemplo n.º 1
0
 public static Api.Models.Asset ConvertToApi(this Business.Models.Asset asset)
 {
     return(new Api.Models.Asset
     {
         Name = asset.Name,
         Id = asset.Id,
         TimeStamp = asset.TimeStamp,
         CustomApiProperty = asset.CustomBusinessProperty
     });
 }
Ejemplo n.º 2
0
 public static Repository.Models.Asset ConvertToRepository(this Business.Models.Asset asset)
 {
     return(new Repository.Models.Asset
     {
         Name = asset.Name,
         Id = asset.Id,
         TimeStamp = asset.TimeStamp,
         CustomRepositoryProperty = asset.CustomBusinessProperty
     });
 }