Esempio n. 1
0
 public static LinhVucVanBanInfo ToDataInfo(this LinhVucVanBan entity)
 {
     return(new LinhVucVanBanInfo
     {
         Id = entity.Id,
         Name = entity.Ten
     });
 }
Esempio n. 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
     });
 }
Esempio n. 3
0
 public static LinhVucVanBanInfo ToIfNotNullDataInfo(this LinhVucVanBan entity)
 {
     return(entity?.ToDataInfo());
 }
Esempio n. 4
0
 public static LinhVucVanBanResult ToIfNotNullDataResult(this LinhVucVanBan entity)
 {
     return(entity?.ToDataResult());
 }