Exemple #1
0
        public static int GetNotSeenMessagesCount(Guid applicationId, Guid userId)
        {
            string spName = GetFullyQualifiedName("GetNotSeenMessagesCount");

            try
            {
                return(ProviderUtil.succeed_int(ProviderUtil.execute_reader(spName, applicationId, userId)));
            }
            catch (Exception ex)
            {
                LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.MSG);
                return(0);
            }
        }
        public static int GetUserFinishedEventsCount(Guid applicationId, Guid userId, bool?done)
        {
            string spName = GetFullyQualifiedName("GetUserFinishedEventsCount");

            try
            {
                return(ProviderUtil.succeed_int(ProviderUtil.execute_reader(spName, applicationId,
                                                                            userId, DateTime.Now, done)));
            }
            catch (Exception ex)
            {
                LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.EVT);
                return(0);
            }
        }
        public static int GetTitlesCount(Guid applicationId,
                                         Guid ownerId, bool?isAdmin, Guid?currentUserId, bool?removed)
        {
            string spName = GetFullyQualifiedName("GetTitlesCount");

            try
            {
                return(ProviderUtil.succeed_int(ProviderUtil.execute_reader(spName, applicationId,
                                                                            ownerId, isAdmin, currentUserId, removed)));
            }
            catch (Exception ex)
            {
                LogController.save_error_log(applicationId, null, spName, ex, ModuleIdentifier.WK);
                return(0);
            }
        }