コード例 #1
0
 public static Upload_Infra UploadFromDomainToInfra(this Upload_Domain @this)
 {
     if (@this != null)
     {
         return(new Upload_Infra()
         {
             Id = @this.Id,
             Comment_InfraId = @this.Comment_DomainId,
             FileName = @this.FileName,
             FileType = @this.FileType,
             File = @this.File
         });
     }
     else
     {
         return(null);
     }
 }
コード例 #2
0
 public void UpdateUpload(Upload_Domain inst)
 {
     repository.UpdateUpload(inst.UploadFromDomainToInfra());
 }
コード例 #3
0
 public int?CreateUpload(Upload_Domain inst)
 {
     return(repository.CreateUpload(inst.UploadFromDomainToInfra()));
 }