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