public MinistryIncomeController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IMinistryIncomeRepository MinistryIncomeParam, IMinistryMemberRepository MinistryMemberParam, ISubCategoryRepository SubCategoryParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; MinistryIncomeRepository = MinistryIncomeParam; MinistryMemberRepository = MinistryMemberParam; SubCategoryRepository = SubCategoryParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin")) //creator access { ViewBag.Supervisor = true; } if ((user.role.Name == "Officer") || (user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor2 = true; } if ((user.role.Name == "FinanceStaff") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor3 = true; } } } }
public AnnouncementController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IAnnouncementRepository AnnouncementParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; AnnouncementRepository = AnnouncementParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "Officer") //creator access { ViewBag.Supervisor2 = true; } } } }
public ContributionController(IConstantRepository ConstantParam, IMemberRepository MemberParam, IFamilyRepository FamilyParam, IContributionRepository ContributionParam, ISubCategoryRepository SubCategoryParam, IPictureRepository PictureParam, ISpouseRepository SpouseParam, IMinistryRepository MinistryParam) { ConstantRepository = ConstantParam; MemberRepository = MemberParam; FamilyRepository = FamilyParam; ContributionRepository = ContributionParam; SubCategoryRepository = SubCategoryParam; PictureRepository = PictureParam; SpouseRepository = SpouseParam; MinistryRepository = MinistryParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if ((user.role.Name == "FinanceStaff") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor2 = true; } } }
public CalendarController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, ICalendarRepository CalendarParam, IDocumentRepository DocumentParam, IPictureRepository PictureParam, IProgramEventRepository ProgramEventParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; CalendarRepository = CalendarParam; DocumentRepository = DocumentParam; PictureRepository = PictureParam; ProgramEventRepository = ProgramEventParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "Officer") //creator access { ViewBag.Supervisor2 = true; } } } }
public StaffController(IConstantRepository ConstantParam, IStaffRepository StaffParam, IResponsibilityRepository ResponsibilityParam, IMinistryRepository MinistryParam, IPictureRepository PictureParam) { ConstantRepository = ConstantParam; StaffRepository = StaffParam; ResponsibilityRepository = ResponsibilityParam; MinistryRepository = MinistryParam; PictureResponsibility = PictureParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "Officer") //creator access { ViewBag.Supervisor2 = true; } } } }
public MinistryController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IGoalRepository GoalParam, IMeetingRepository MeetingParam, IAnnouncementRepository AnnouncementParam, ICalendarRepository CalendarParam, IMinistryMemberRepository MinistryMemberParam, IMemberRepository MemberParam, IChildParentRepository ChildParentParam, IStoryRepository StoryParam, IPictureRepository PictureParam, IListtableRepository ListTableParam, IMinistryGroupRepository MinistryGroupParam, IDocumentRepository DocumentParam, IVideoRepository VideoParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; GoalRepository = GoalParam; MeetingRepository = MeetingParam; AnnouncementRepository = AnnouncementParam; CalendarRepository = CalendarParam; MinistryMemberRepository = MinistryMemberParam; MemberRepository = MemberParam; ChildParentRepository = ChildParentParam; StoryRepository = StoryParam; PictureRepository = PictureParam; ListTableRepository = ListTableParam; MinistryGroupRepository = MinistryGroupParam; DocumentRepository = DocumentParam; VideoRepository = VideoParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if ((user.role.Name == "Officer")) //creator access { ViewBag.Supervisor2 = true; } if ((user.role.Name == "FinanceLead")) //creator access { ViewBag.Supervisor3 = true; } } } }
public HomeController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, ICalendarRepository CalendarParam, IMeetingRepository MeetingParam, IAnnouncementRepository AnnouncementParam, IStoryRepository StoryParam, IPictureRepository PictureParam, IListtableRepository ListTableParam, IDocumentRepository DocumentParam, IVideoRepository VideoParam, IVisitorRepository VisitorParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; CalendarRepository = CalendarParam; MeetingRepository = MeetingParam; AnnouncementRepository = AnnouncementParam; StoryRepository = StoryParam; PictureRepository = PictureParam; ListTableRepository = ListTableParam; DocumentRepository = DocumentParam; VideoRepository = VideoParam; VisitorRepository = VisitorParam; }
public EmailController(IConstantRepository ConstantParam, IMemberRepository MemberParam, IMinistryMemberRepository MinistryMemberParam, IMinistryRepository MinistryParam, IVisitorRepository VisitorParam, IChildParentRepository ChildParentParam) { ConstantRepository = ConstantParam; MemberRepository = MemberParam; MinistryMemberRepository = MinistryMemberParam; MinistryRepository = MinistryParam; VisitorRepository = VisitorParam; ChildParentRepository = ChildParentParam; ChurchName = ConstantRepository.GetConstantByName("Church Name").Value1; ChurchURL = ConstantRepository.GetConstantByName("Church URL").Value1; if (ChurchURL.Substring(0, 4) != "www.") { ChurchURL = string.Format("www.{0}", ChurchURL); } }
public MeetingController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IMeetingRepository MeetingParam, IMinistryMemberRepository MinistryMemberParam, ICalendarRepository CalendarParam, IMeetingAgendaRepository MeetingAgendaRepoistory, IAttendanceRepository AttendanceParam, IMeetingNotesRepository MeetingNoteParam, IMemberRepository MemberParam, ITaskRepository TaskParam, IDocumentRepository DocumentParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; MeetingRepository = MeetingParam; MinistryMemberRepository = MinistryMemberParam; CalendarRepository = CalendarParam; MeetingAgendaRepository = MeetingAgendaRepoistory; AttendanceRepository = AttendanceParam; MeetingNotesRepository = MeetingNoteParam; MemberRepository = MemberParam; TaskRepository = TaskParam; DocumentRepository = DocumentParam; ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "Officer") //creator access { ViewBag.Supervisor2 = true; } } } }
public TaskController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IGoalRepository GoalParam, ITaskRepository TaskParam, IMinistryMemberRepository MinistryMemberParam, IMemberRepository MemberParam, IActionItemRepository ActionItemParam, IMeetingAgendaRepository MeetingAgendaParam, IMeetingRepository MeetingParam) { ConstantRepository = ConstantParam; MinistryRepository = MinistryParam; GoalRepository = GoalParam; TaskRepository = TaskParam; MinistryMemberRepository = MinistryMemberParam; MemberRepository = MemberParam; ActionItemRepository = ActionItemParam; MeetingAgendaRepository = MeetingAgendaParam; MeetingRepository = MeetingParam; //security ViewBag.Supervisor = false; int memberID = Convert.ToInt16(System.Web.HttpContext.Current.Session["personID"]); if (memberID > 0) { if (MembershipRepositroy.IsUser(memberID)) { user user = MembershipRepositroy.GetUserByID(memberID); if ((user.role.Name == "WebMaster") || (user.role.Name == "Pastor") || (user.role.Name == "Admin") || (user.role.Name == "Admin2")) //creator access { ViewBag.Supervisor = true; } if (user.role.Name == "WebMaster") //creator access { ViewBag.WebMaster = true; } if (user.role.Name == "Officer") //creator access { ViewBag.Supervisor2 = true; } } } }
public MinistryController() { _ministryRepository = new MinistryRepository(); _loggerService = new LoggerService(); _user = "******"; }