public async Task CreateAsync(string name, string code)
 {
     _unitOfWork.RegisterNew(new Province
     {
         Name = name,
         Code = code
     });
     await _unitOfWork.CommitAsync();
 }
Esempio n. 2
0
        public async Task CreateAddressAsync(AddressCreateDto addressCreate)
        {
            _unitOfWork.RegisterNew(new Address.Domain.Address
            {
                City     = addressCreate.City,
                County   = addressCreate.County,
                Province = addressCreate.Province
            });
            await _unitOfWork.CommitAsync();

            //throw new Exception();
        }