|
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);
|
});
|
}
|
}
|
}
|