Example #1
0
        public async Task <Seller> CreateSellerAsync(Seller seller)
        {
            await _salesManagementContext.AddAsync(seller);

            await _salesManagementContext.SaveChangesAsync();

            return(seller);
        }
        public async Task <Sale> CreateSaleAsync(Sale sale)
        {
            await _salesManagementContext.AddAsync(sale);

            await _salesManagementContext.SaveChangesAsync();

            return(sale);
        }