| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetAll() |
| | | public async Task<List<Vmo.AssetsExchangerMainAndPartMappingVmo>> GetAll() |
| | | { |
| | | var DtoList = await _cal.GetAll(); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList); |
| | | var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMappingVmo>>(DtoList); |
| | | return vmoList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<Vmo.AssetsExchangerMainAndPartMapVmo> GetByID(long ID) |
| | | public async Task<Vmo.AssetsExchangerMainAndPartMappingVmo> GetByID(long ID) |
| | | { |
| | | var Dto = await _cal.GetByID(ID); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>(Dto); |
| | | var vmo = mapper.Map<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>(Dto); |
| | | |
| | | return vmo; |
| | | } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<List<Vmo.AssetsExchangerMainAndPartMapVmo>> GetByIds(List<long> Ids) |
| | | public async Task<List<Vmo.AssetsExchangerMainAndPartMappingVmo>> GetByIds(List<long> Ids) |
| | | { |
| | | var DtoList = await _cal.GetByIds(Ids); |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMapVmo>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Dto.Assets.AssetsExchangerMainAndPartMappingDto, Vmo.AssetsExchangerMainAndPartMappingVmo>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMapVmo>>(DtoList); |
| | | var vmoList = mapper.Map<List<Dto.Assets.AssetsExchangerMainAndPartMappingDto>, List<Vmo.AssetsExchangerMainAndPartMappingVmo>>(DtoList); |
| | | |
| | | return vmoList; |
| | | } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<long> Insert(Vmo.AssetsExchangerMainAndPartMapVmo model) |
| | | public async Task<long> Insert(Vmo.AssetsExchangerMainAndPartMappingVmo model) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>(model); |
| | | var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>(model); |
| | | |
| | | return await _cal.Insert(vmo); |
| | | } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<bool> Inserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list) |
| | | public async Task<bool> Inserts(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list); |
| | | |
| | | return await _cal.Inserts(vmoList); |
| | | } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<bool> BulkInserts(List<Vmo.AssetsExchangerMainAndPartMapVmo> list) |
| | | public async Task<bool> BulkInserts(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, AddAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<AddAssetsExchangerMainAndPartMappingInput>>(list); |
| | | return await _cal.BulkInserts(vmoList); |
| | | } |
| | | |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<bool> Update(Vmo.AssetsExchangerMainAndPartMapVmo model) |
| | | public async Task<bool> Update(Vmo.AssetsExchangerMainAndPartMappingVmo model) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>(model); |
| | | var vmo = mapper.Map<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>(model); |
| | | return await _cal.Update(vmo); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<bool> Updates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list) |
| | | public async Task<bool> Updates(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list); |
| | | |
| | | return await _cal.Updates(vmoList); |
| | | } |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public async Task<bool> BulkUpdates(List<Vmo.AssetsExchangerMainAndPartMapVmo> list) |
| | | public async Task<bool> BulkUpdates(List<Vmo.AssetsExchangerMainAndPartMappingVmo> list) |
| | | { |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMapVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<Vmo.AssetsExchangerMainAndPartMappingVmo, UpdateAssetsExchangerMainAndPartMappingInput>() |
| | | ).CreateMapper(); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMapVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list); |
| | | var vmoList = mapper.Map<List<Vmo.AssetsExchangerMainAndPartMappingVmo>, List<UpdateAssetsExchangerMainAndPartMappingInput>>(list); |
| | | return await _cal.BulkUpdates(vmoList); |
| | | } |
| | | |