public async Task <IActionResult> AddAddressAsync(Address address) { try { await _context.AddAddressAsync(address); return(Ok(address)); } catch (Exception ex) { return(BadRequest(ex)); } }
public async Task <IActionResult> AddAddressAsync(Address address) { try { await _context.AddAddressAsync(address); return(Ok(address)); } catch (Exception ex) { return(BadRequest(ex)); } }