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