Пример #1
0
 public static LinhVucCongViecInfo ToDataInfo(this LinhVucCongViec entity)
 {
     return(new LinhVucCongViecInfo
     {
         Id = entity.Id,
         Name = entity.Ten
     });
 }
Пример #2
0
 public static LinhVucCongViecResult ToDataResult(this LinhVucCongViec entity)
 {
     return(new LinhVucCongViecResult
     {
         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 LinhVucCongViecInfo ToIfNotNullDataInfo(this LinhVucCongViec entity)
 {
     return(entity?.ToDataInfo());
 }
Пример #4
0
 public static LinhVucCongViecResult ToIfNotNullDataResult(this LinhVucCongViec entity)
 {
     return(entity?.ToDataResult());
 }