Beispiel #1
0
 public static TrangThaiCongViecInfo ToDataInfo(this TrangThaiCongViec entity)
 {
     return(new TrangThaiCongViecInfo
     {
         Id = entity.Id,
         Name = entity.Ten
     });
 }
Beispiel #2
0
 public static TrangThaiCongViecResult ToDataResult(this TrangThaiCongViec entity)
 {
     return(new TrangThaiCongViecResult
     {
         Id = entity.Id,
         Ten = entity.Ten,
         MoTa = entity.MoTa,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
Beispiel #3
0
 public static TrangThaiCongViecInfo ToIfNotNullDataInfo(this TrangThaiCongViec entity)
 {
     return(entity?.ToDataInfo());
 }
Beispiel #4
0
 public static TrangThaiCongViecResult ToIfNotNullDataResult(this TrangThaiCongViec entity)
 {
     return(entity?.ToDataResult());
 }