示例#1
0
 public static TapTinThuTucResult ToDataResult(this TapTinThuTuc entity)
 {
     return(new TapTinThuTucResult
     {
         Id = entity.Id,
         ThuTucId = entity.ThuTucId,
         ThuTucInfo = entity.ThuTuc.ToDataInfo(),
         Url = entity.Url,
         FileName = System.IO.Path.GetFileName(entity.Url),
         Path = System.IO.Path.GetDirectoryName(entity.Url),
         UserUploadId = entity.UserUploadId,
         UserInfo = entity.User.ToDataInfo(),
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
示例#2
0
 public static TapTinThuTucResult ToIfNotNullDataResult(this TapTinThuTuc entity)
 {
     return(entity?.ToDataResult());
 }