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