public static DataTable loginCliente(Entidades.LoginValidate loginValidate) { try { SqlCommand command = Conexion.commandSP("SPLoginCliente"); command.Parameters.AddWithValue("@_email", loginValidate.email); command.Parameters.AddWithValue("@_password", Funciones.EncriptarSHA512(loginValidate.password)); command.Parameters.AddWithValue("@_token", Funciones.getTokenSession()); dt = Conexion.execCommandSelect(command); } catch (Exception ex) { excepcion.estado = false; excepcion.message = "Ha ocurrido un error"; excepcion.errorMessage = ex.Message; dt = Funciones.retornarException(excepcion); } return(dt); }
public DataTable login(Entidades.LoginValidate loginValidate) { return(Models.DataCliente.loginCliente(loginValidate)); }