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