Exemplo n.º 1
0
 private void UpdateDbAssetSoa(Asset_SoaChapter asset_SoaChapter, Contracts.Asset.AssetSoa value)
 {
     asset_SoaChapter.Implemented  = value.Implemented;
     asset_SoaChapter.ValidTo      = value.ValidTo;
     asset_SoaChapter.ExecutedDate = value.ExecutedDate;
     asset_SoaChapter.Deadline     = value.Deadline;
     asset_SoaChapter.Comment      = value.Comment;
 }
Exemplo n.º 2
0
 public static Contracts.Asset.AssetSoa ToContract(this Asset_SoaChapter dbAssetSoa, string name, int soaType)
 {
     return(new Contracts.Asset.AssetSoa()
     {
         Implemented = dbAssetSoa.Implemented,
         SoaId = dbAssetSoa.SoaId,
         SoaChapterName = name,
         ValidTo = dbAssetSoa.ValidTo,
         ExecutedDate = dbAssetSoa.ExecutedDate,
         SoaType = soaType,
         Deadline = dbAssetSoa.Deadline,
         Comment = dbAssetSoa.Comment,
     });
 }
Exemplo n.º 3
0
        internal static Contracts.Asset.AssetSoa ConvertToDataContract(Asset_SoaChapter asset_SoaChapter, int soaId, int soaType, string name)
        {
            var assetSoa = new Contracts.Asset.AssetSoa()
            {
                SoaId          = soaId,
                SoaType        = soaType,
                SoaChapterName = name
            };

            if (asset_SoaChapter != null)
            {
                assetSoa.Implemented  = asset_SoaChapter.Implemented;
                assetSoa.ValidTo      = asset_SoaChapter.ValidTo;
                assetSoa.ExecutedDate = asset_SoaChapter.ExecutedDate;
                assetSoa.Deadline     = asset_SoaChapter.Deadline;
            }
            return(assetSoa);
        }