Esempio n. 1
0
 public static CoQuanInfo ToDataInfo(this CoQuan entity)
 {
     return(new CoQuanInfo
     {
         Id = entity.Id,
         Name = entity.Ten,
         NhomCoQuanId = entity.NhomCoQuanId,
     });
 }
Esempio 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
     });
 }
Esempio n. 3
0
 public static CoQuanResult ToIfNotNullDataResult(this CoQuan entity)
 {
     return(entity?.ToDataResult());
 }
Esempio n. 4
0
 public static CoQuanInfo ToIfNotNullDataInfo(this CoQuan entity)
 {
     return(entity?.ToDataInfo());
 }