예제 #1
0
        public Usuario GetUserAccount(Filter filter)
        {
            Usuario result;

            try
            {
                dataAccess.AddParameter("nombreUsuario", filter.NombreUsuario);
                dataAccess.AddParameter("password", filter.Password);
                result = dataAccess.ExcecuteProcedure("usp_sel_userlogin", UsuarioMapper.GetUsers).Data.FirstOrDefault();
            }
            finally
            {
                dataAccess.Dispose();
            }

            return(result);
        }
예제 #2
0
        public Client GetClient(Filter filter)
        {
            Client result;

            try
            {
                dataAccess.AddParameter("clientId", filter.ClientId);
                result = dataAccess.ExcecuteProcedure("oauth.usp_sel_clients", ClientMapper.GetClients).Data.FirstOrDefault();
            }
            finally
            {
                dataAccess.Dispose();
            }

            return(result);
        }