Ejemplo n.º 1
0
        public static IActionRepository <T> GetActionRepository(string dbName, string productName, string userId)
        {
            IActionRepository <T> repo = null;

            //We only have 1 repository at this time, just return it
            repo        = new MongoActionRepository <T>(dbName) as IActionRepository <T>;
            repo.UserId = userId;
            return(repo);
        }
Ejemplo n.º 2
0
        public static GetAllActionsDataResponse GetActionsList(GetAllActionsDataRequest request)
        {
            GetAllActionsDataResponse result = new GetAllActionsDataResponse();

            MongoActionRepository <GetAllActionsDataResponse> repo = new MongoActionRepository <GetAllActionsDataResponse>(request.ContractNumber);

            repo.UserId = request.UserId;

            result = repo.SelectAll(request.Version, Status.Active);

            return(result);
        }