Exemplo n.º 1
0
        public static List <User> GetAllUsers()
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.User> Users = dbr.Find <Domain.Socioboard.Models.User>(t => t.ActivationStatus == 0).ToList();

            return(Users);
        }
Exemplo n.º 2
0
        public List <User> getUsersById(long UserId, string access_token)
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.User> getallgroups          = dbr.Find <Domain.Socioboard.Models.User>(t => t.Id == UserId).ToList();

            return(getallgroups);
        }
Exemplo n.º 3
0
        public static List <User> subscriptionstatus()
        {
            // DateTime dateTime = DateTime.UtcNow.Date.AddDays(-7);
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.User> lstLogintime          = dbr.Find <Domain.Socioboard.Models.User>(t => t.dailyGrpReportsSummery == true).ToList();

            return(lstLogintime);
        }
Exemplo n.º 4
0
        public List <Groups> GetAllGroups()
        {
            DateTime dateTime = DateTime.UtcNow;

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.Groups> getallgroups        = dbr.Find <Domain.Socioboard.Models.Groups>(t => t.createdDate.Date <= dateTime.Date && t.id >= 1 && t.id <= 100).ToList();

            return(getallgroups);
        }
Exemplo n.º 5
0
        public static List <User> Inactiveuser()
        {
            DateTime dateTime = DateTime.UtcNow.Date.AddDays(-7);

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.User> lstLogintime          = dbr.Find <Domain.Socioboard.Models.User>(t => t.LastLoginTime <= dateTime).ToList();

            return(lstLogintime);
        }
Exemplo n.º 6
0
        public static List <NewsLetter> GetAllnewsletter()
        {
            DateTime dateTime = DateTime.UtcNow.Date;

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr   = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.NewsLetter>             _news = dbr.Find <Domain.Socioboard.Models.NewsLetter>(t => t.ExpiryDate.Date >= dateTime).ToList();

            return(_news);
        }
Exemplo n.º 7
0
        public static List <User> GetAllbeforeExpiredUser()
        {
            DateTime dateTime = DateTime.UtcNow.Date.AddDays(7);

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.User> lstEmail = dbr.Find <Domain.Socioboard.Models.User>(t => t.ExpiryDate.Date == dateTime.Date).ToList();

            return(lstEmail);
        }
Exemplo n.º 8
0
        public List <Groupmembers> Getgroupmembersbyid(Int64 id)
        {
            DateTime dateTime = DateTime.UtcNow;

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr          = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.Groupmembers>           getallgroups = dbr.Find <Domain.Socioboard.Models.Groupmembers>(t => t.groupid == id).ToList();

            return(getallgroups);
        }
Exemplo n.º 9
0
        public List <Groupprofiles> GetGroupProfiles(long groupId)
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.Groupprofiles>          getGroupProfiles = dbr.Find <Domain.Socioboard.Models.Groupprofiles>(t => t.groupId == groupId).ToList();

            return(getGroupProfiles);
        }
Exemplo n.º 10
0
        public List <Instagramaccounts> UserInformation(Int64 adminid)
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.Instagramaccounts>      getallinstaprofiles = dbr.Find <Domain.Socioboard.Models.Instagramaccounts>(t => t.UserId == adminid).ToList();

            return(getallinstaprofiles);
        }
Exemplo n.º 11
0
        public List <Facebookaccounts> getFacebookpageAccountDetailsById(Int64 adminid)
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.Facebookaccounts>       getallfbprofiles = dbr.Find <Domain.Socioboard.Models.Facebookaccounts>(t => t.UserId == adminid && t.FbProfileType == Domain.Socioboard.Enum.FbProfileType.FacebookPage).ToList();

            return(getallfbprofiles);
        }
Exemplo n.º 12
0
        public List <TwitterAccount> GetTwitterFollowers(long adminId, long userId, string days)
        {
            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.TwitterAccount>         TwitterFollowerCount = dbr.Find <Domain.Socioboard.Models.TwitterAccount>(t => t.userId == adminId).ToList();

            return(TwitterFollowerCount);
        }
Exemplo n.º 13
0
        public List <TwitterAccount> GetTwitterAccountDetailsById(Int64 adminid)
        {
            DateTime dateTime = DateTime.UtcNow.Date;

            SocioBoardMailSenderServices.Helper.DatabaseRepository dbr = new SocioBoardMailSenderServices.Helper.DatabaseRepository();
            List <Domain.Socioboard.Models.TwitterAccount>         getalltwtprofiles = dbr.Find <Domain.Socioboard.Models.TwitterAccount>(t => t.userId == adminid).ToList();

            return(getalltwtprofiles);
        }