Beispiel #1
0
 public ChaplainController()
 {
     ViewBag.Logs      = ContactLogHelper.GetContactLogsByMentorId(ref this._db, _userId).Take(3);
     ViewBag.Messages  = MessagingHelper.GetMessagesToUserId(ref this._db, _userId).Take(3);
     ViewBag.Events    = CalendarHelper.GetEventsByUserId(ref this._db, _userId).Take(3);
     ViewBag.Resources = ResourceHelper.GetResources(ref this._db).Take(3);
 }
Beispiel #2
0
 public MessagingController()
 {
     ViewBag.UserId = AccountHelper.GetUserIdByUsername(ref this._db, WebSecurity.CurrentUserName);
     ViewBag.Users  = AccountHelper.GetUserDropdownList(ref this._db);
     ViewBag.Inbox  = MessagingHelper.GetMessagesToUserId(ref this._db, ViewBag.UserId);
     ViewBag.Outbox = MessagingHelper.GetMessagesFromUserId(ref this._db, ViewBag.UserId);
     ViewBag.YesNo  = _db.YesNoList;
 }
Beispiel #3
0
        public MentorController()
        {
            ViewBag.UserId       = base._userId;
            ViewBag.Logs         = ContactLogHelper.GetContactLogsByMentorId(ref this._db, _userId).Take(3);
            ViewBag.Messages     = MessagingHelper.GetMessagesToUserId(ref this._db, _userId).Take(3);
            ViewBag.Events       = CalendarHelper.GetEventsByUserId(ref this._db, _userId).Take(3);
            ViewBag.Resources    = ResourceHelper.GetResources(ref this._db).Take(3);
            ViewBag.Mentees      = MentorHelper.GetMenteesDropdownList(ref this._db);
            ViewBag.Ministries   = MinistryHelper.GetMinistriesDropdownList(ref this._db);
            ViewBag.ContactTypes = this._db.ContactTypes;
            ViewBag.Ministries   = _db.MinistriesList;
            ViewBag.States       = _db.StateList;
            ViewBag.Cities       = _db.CityList;
            ViewBag.Prefixes     = _db.Prefixes;
            ViewBag.Suffixes     = _db.Suffixes;
            ViewBag.Genders      = _db.Genders;
            ViewBag.Races        = _db.Races;
            ViewBag.YesNoList    = _db.YesNoList;

            Mapper.CreateMap <ContactLog, ContactLogViewModel>();
            Mapper.CreateMap <ContactLogViewModel, ContactLog>();
        }