public static NhomCoQuanResult ToDataResult(this NhomCoQuan entity)
 {
     return(new NhomCoQuanResult
     {
         Id = entity.Id,
         Ten = entity.Ten,
         MoTa = entity.MoTa,
         CoQuanResult = entity.CoQuans.Select(x => x.ToIfNotNullDataResult()),
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
 public static NhomCoQuanResult ToIfNotNullDataResult(this NhomCoQuan entity)
 {
     return(entity?.ToDataResult());
 }