Exemplo n.º 1
0
 public AddressDTO Create(AddressCreateDTO createModel)
 {
     return(_addressService.Create(createModel));
 }
Exemplo n.º 2
0
 public ActionResult <AddressDTO> Create([FromBody] AddressCreateDTO userInput)
 {
     try { return(_addressManager.Create(userInput)); }
     catch (BaseCustomException ex) { return(BadRequest(ex.Message)); }
 }