Ejemplo n.º 1
0
 public static LinhVucThuTucResult ToDataResult(this LinhVucThuTuc entity)
 {
     return(new LinhVucThuTucResult
     {
         Id = entity.Id,
         Ten = entity.Ten,
         MoTa = entity.MoTa,
         ParentId = entity.ParentId,
         CreateDate = entity.CreateDate,
         CreatedBy = entity.CreatedBy,
         IsDeleted = entity.IsDeleted,
         LastUpdated = entity.LastUpdated,
         LastUpdatedBy = entity.LastUpdatedBy
     });
 }
Ejemplo n.º 2
0
 public static LinhVucThuTucResult ToIfNotNullDataResult(this LinhVucThuTuc entity)
 {
     return(entity?.ToDataResult());
 }