Ejemplo n.º 1
0
        public Task <int> AddCustomerAddressRL(CustomerAdress address)
        {
            bookStoreDB.Address.Add(address);
            var result = bookStoreDB.SaveChangesAsync();

            return(result);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> AddCustomerAddress(CustomerAdress address)
        {
            var result = await this.imanager.AddCustomerAddressBL(address);

            sender.Send("Add custmor address");
            if (result == 1)
            {
                return(this.Ok(address));
            }

            return(this.BadRequest());
        }
Ejemplo n.º 3
0
 public Task<int> AddCustomerAddressBL(CustomerAdress address)
 {
     return this.irepo.AddCustomerAddressRL(address);
 }