Beispiel #1
0
        public async Task Create(CreateBuyerProfileInputDto input)
        {
            var @buyer = input.MapTo <BuyerProfile>();

            @buyer = BuyerProfile.Create(AbpSession.GetTenantId(), input.BuyerName, input.TeleNo, input.Address, input.Email, input.Remark);

            await _buyerRepository.InsertAsync(@buyer);
        }
Beispiel #2
0
        public async Task DeleteBuyer(CreateBuyerProfileInputDto input)
        {
            var @buyer = input.MapTo <BuyerProfile>();

            await _buyerRepository.DeleteAsync(@buyer.Id);
        }