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