Пример #1
0
        public int GetDownloadCountByCreator(DateTime dateDay, string creatorId)
        {
            Dictionary <string, object> arguments = new Dictionary <string, object>();

            arguments.Add("@creatorId", creatorId);
            arguments.Add("@date", dateDay);

            int downloadCount = _repo.CallProcedure <int>("[besmart].[GetDownloadCountByCreator]", arguments);

            return(downloadCount);
        }
Пример #2
0
        public float GetTestRank(int testId)
        {
            Dictionary <string, object> arguments = new Dictionary <string, object>();

            arguments.Add("@testId", testId);
            float currRank = _repository.CallProcedure <float>("besmart.GetTestRank", arguments);

            return(currRank);
        }