ningshuxia
2022-12-12 e81ca048ef4e9345e904b74ffffd3e8413d18a7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Service
{
    /// <summary>
    /// 
    /// </summary>
    public static class AttentionObjectSelectedExtensions
    {
 
        /// <summary>
        /// 
        /// </summary>
        public static List<Entity.AttentionObjectSelected> ToEntityList(this List<Model.AttentionObjectSelected> list)
        {
            if (list == null || list.Count() < 1)
                return default;
            return list.Select(x => new Entity.AttentionObjectSelected() { 
                CorpID = x.CorpID,
                ObjectType = x.ObjectType,
                ObjectID = x.ObjectID,
                Selected = x.Selected
            }).ToList();
        }
 
    }
}