Beispiel #1
0
 public static LinhVucVanBanInfo ToDataInfo(this LinhVucVanBan entity)
 {
     return(new LinhVucVanBanInfo
     {
         Id = entity.Id,
         Name = entity.Ten
     });
 }
Beispiel #2
0
 public static LinhVucVanBanResult ToDataResult(this LinhVucVanBan entity)
 {
     return(new LinhVucVanBanResult
     {
         Id = entity.Id,
         Ten = entity.Ten,
         MoTa = entity.MoTa,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
Beispiel #3
0
 public static LinhVucVanBanInfo ToIfNotNullDataInfo(this LinhVucVanBan entity)
 {
     return(entity?.ToDataInfo());
 }
Beispiel #4
0
 public static LinhVucVanBanResult ToIfNotNullDataResult(this LinhVucVanBan entity)
 {
     return(entity?.ToDataResult());
 }