Exemplo n.º 1
0
 public static ChucVuInfo ToDataInfo(this ChucVu entity)
 {
     return(new ChucVuInfo
     {
         Id = entity.Id,
         Name = entity.Ten
     });
 }
Exemplo n.º 2
0
 public static ChucVuResult ToDataResult(this ChucVu entity)
 {
     return(new ChucVuResult
     {
         Id = entity.Id,
         Ten = entity.Ten,
         MoTa = entity.MoTa,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
Exemplo n.º 3
0
 public static ChucVuInfo ToIfNotNullDataInfo(this ChucVu entity)
 {
     return(entity?.ToDataInfo());
 }
Exemplo n.º 4
0
 public static ChucVuResult ToIfNotNullDataResult(this ChucVu entity)
 {
     return(entity?.ToDataResult());
 }