예제 #1
0
 public async Task <object> CrearPersona([FromBody] AddCardHolder_DTO newCardHolder)
 {
     return(await _cardHolder_REP_LOCAL.CrearPersona(newCardHolder));
 }
예제 #2
0
 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)); }
 }