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); }
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); }