public async Task <object> CrearPersona(AddCardHolder_DTO newCardHolder, string idTipo)
        {
            switch (idTipo)
            {
            case "V":
                return(await _cardHolder_REP.AddVisitor(newCardHolder, _path, _user, _pass));

            default:
                return(await _cardHolder_REP.AddCardHolder(newCardHolder, _path, _user, _pass));
            }
        }
        public async Task <object> CrearPersona(AddCardHolder_DTO newCardHolder)
        {
            try {
                await _cardHolder_REP.AddCardHolder(newCardHolder, _path, _user, _pass);

                return(await ObtenerPersona(newCardHolder.nroDocumento, newCardHolder.ssno));
            }
            catch (Exception ex)
            {
                throw new Exception("No fue posible completar la operación " + ex.Message);
            }
        }
예제 #3
0
 public async Task <object> CrearPersona(AddCardHolder_DTO newCardHolder)
 {
     return(await _cardHolder_REP.AddCardHolder(newCardHolder));
 }