Example #1
0
        public IEnumerable <Operation> GetNotAddedInUser(Guid userId)
        {
            OperationCommandBuilder userCommandBuilder = new OperationCommandBuilder();
            var query = userCommandBuilder.GetNotAddedInUser(userId);

            return(DBManager.GetCollection <Operation>(ConnectionHandler, query));
        }
Example #2
0
        public async Task <List <Operation> > GetAllByUserIdAsync(Guid userId)
        {
            OperationCommandBuilder userCommandBuilder = new OperationCommandBuilder();
            SqlCommand query = userCommandBuilder.GetAllByUserId(userId);

            return(await DBManager.GetCollectionAsync <Operation>(ConnectionHandler, query));
        }
Example #3
0
        public IEnumerable <Operation> GetNotAddedInRole(Guid roleId)
        {
            OperationCommandBuilder userCommandBuilder = new OperationCommandBuilder();
            SqlCommand query = userCommandBuilder.GetNotAddedInRole(roleId);

            return(DBManager.GetCollection <Operation>(ConnectionHandler, query));
        }
Example #4
0
        public List <Operation> GetAllByUserId(Guid userId)
        {
            OperationCommandBuilder userCommandBuilder = new OperationCommandBuilder();
            SqlCommand query = userCommandBuilder.GetAllByUserId(userId);

            return(DBManager.GetCollection <Operation>(ConnectionHandler, query));
        }