public async Task <object> CrearPersona([FromBody] AddCardHolder_DTO newCardHolder) { return(await _cardHolder_REP_LOCAL.CrearPersona(newCardHolder)); }
public async Task <object> CrearPersona([FromBody] AddCardHolder_DTO newCardHolder, string idTipo) { try { return(await _cardHolder_REP_LOCAL.CrearPersona(newCardHolder, idTipo)); } catch (Exception ex) { return(BadRequest("error: " + ex.Message + " " + ex.StackTrace + " " + ex.InnerException)); } }