public ConfigRepository(MindCornersEntities context, Guid currentUserId, Guid?currentUserOrganizationId)
     : base(context, currentUserId, currentUserOrganizationId)
 {
     _currentUserId             = currentUserId;
     _context                   = context;
     _currentUserOrganizationId = currentUserOrganizationId;
 }
        public static string GetSetting(ConfigTypes type, Guid?currentUserOrganizationId)
        {
            using (var ent = new MindCornersEntities())
            {
                string res     = string.Empty;
                var    setting = ent.Configs.FirstOrDefault(x => x.Type == (short)type && x.OrganizationId == currentUserOrganizationId);
                if (setting != null)
                {
                    res = setting.Value;
                }

                return(res);
            }
        }
Exemple #3
0
 public PostRepository()
 {
     _context = new MindCornersEntities();
 }
Exemple #4
0
 public MessageTemplateRepository(MindCornersEntities context, Guid currentUserId, Guid?currentUserOrganizationId)
     : base(context, currentUserId, currentUserOrganizationId)
 {
     _currentUserId = currentUserId;
     _context       = context;
 }
Exemple #5
0
 public MessageTemplateRepository(Guid currentUserId)
 {
     _currentUserId = currentUserId;
     _context       = new MindCornersEntities();
 }
 public ConfigRepository(Guid currentUserId)
 {
     _currentUserId = currentUserId;
     _context       = new MindCornersEntities();
 }
 public NotificationRepository()
 {
     _context = new MindCornersEntities();
 }
 public InvitationRepository(MindCornersEntities context, Guid currentUserId, Guid?currnetUserOrganizationId, bool createObjectSet = true) : base(context, currentUserId, currnetUserOrganizationId, createObjectSet)
 {
     _context       = context;
     _currentUserId = currentUserId;
 }
Exemple #9
0
 public UserProfileRepository(Guid currentUserId)
 {
     _currentUserId = currentUserId;
     _context       = new MindCornersEntities();
 }
Exemple #10
0
 public UserProfileRepository()
 {
     _context = new MindCornersEntities();
 }
Exemple #11
0
 public OrganizationRepository(Guid currentUserId)
 {
     _currentUserId = currentUserId;
     _context       = new MindCornersEntities();
 }
Exemple #12
0
 public OrganizationRepository()
 {
     _context = new MindCornersEntities();
 }
 public GridStateRepository(MindCornersEntities context)
 {
     _context = context;
 }
 public GridStateRepository()
 {
     _context = new MindCornersEntities();
 }
Exemple #15
0
 public CircleRepository()
 {
     _context = new MindCornersEntities();
 }
 public TextTemplateRepository()
 {
     _context = new MindCornersEntities();
 }
Exemple #17
0
 public PostAttachmentRepostitory()
 {
     _context = new MindCornersEntities();
 }
 public ConfigRepository()
 {
     _context = new MindCornersEntities();
 }
 public InvitationRepository()
 {
     _context = new MindCornersEntities();
 }
Exemple #20
0
 public UserContactRepository()
 {
     _context = new MindCornersEntities();
 }