lixiaojun
2024-07-11 da1c001309ed262c55514633490ab8c1b8f68916
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
 
namespace Yw.CAL.LocalClient
{
    /// <summary>
    /// 
    /// </summary>
    public class BimfaceFileStd : IBimfaceFileStd
    {
 
 
        public async Task<List<BimfaceFileStdDto>> GetAll()
        {
            return await Task.Factory.StartNew(() =>
            {
                var list = new Yw.Service.BimfaceFile().GetAll();
                var vm_list = list?.Select(x => new BimfaceFileStdDto(x)).ToList();
                return vm_list;
            });
        }
 
        public async Task<BimfaceFileStdDto> GetByID(long ID)
        {
            return await Task.Factory.StartNew(() =>
            {
                var model = new Yw.Service.BimfaceFile().GetByID(ID);
                return model == null ? null : new BimfaceFileStdDto(model);
            });
        }
    }
}