public IActionItemRepository GetActionItemRepository()
 {
     if (actionItemRepository == null)
     {
         actionItemRepository = new MySqlActionItemRepositoy(this);
     }
     return(actionItemRepository);
 }
        public MySqlPersistanceContext(IServiceProvider serviceProvider)
        {
            if (context == null)
            {
                context = serviceProvider.GetService(typeof(MySqlDbContext)) as MySqlDbContext;
            }

            context.EnsureCreated();

            userRepository       = new MySqlUserRepository(this);
            actionItemRepository = new MySqlActionItemRepositoy(this);
        }
Ejemplo n.º 3
0
        public MeetingAgendaController(IConstantRepository ConstantParam, IMinistryRepository MinistryParam, IMeetingRepository MeetingParam,
                                       IMinistryMemberRepository MinistryMemberParam, IMeetingAgendaRepository MeetingAgendaParam, IMeetingNotesRepository MeetingNoteParam,
                                       IGoalRepository GoalParam, ITaskRepository TaskParam, IAttendanceRepository AttendanceParam, IMemberRepository MemberParam, IActionItemRepository ActionItemParam)
        {
            ConstantRepository       = ConstantParam;
            MinistryRepository       = MinistryParam;
            MeetingRepository        = MeetingParam;
            MinistryMemberRepository = MinistryMemberParam;
            MeetingAgendaRepository  = MeetingAgendaParam;
            MeetingNoteRepository    = MeetingNoteParam;
            GoalRepository           = GoalParam;
            TaskRepository           = TaskParam;
            AttendanceRepository     = AttendanceParam;
            MemberRepository         = MemberParam;
            ActionItemRepository     = ActionItemParam;

            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;
                    }
                }
            }
        }
Ejemplo n.º 4
0
 public OrdersService(IOrdersRepository ordersRepository, IActionItemRepository actionItemRepository)
 {
     _ordersRepository     = ordersRepository;
     _actionItemRepository = actionItemRepository;
 }
 public ActionItemController(IActionItemRepository actionItemRepository)
 {
     _repo = actionItemRepository;
 }
Ejemplo n.º 6
0
 public ActionItemsService(IActionItemRepository actionItemRepository)
 {
     _actionItemRepository = actionItemRepository;
 }
Ejemplo n.º 7
0
 public ActionItemService(IPersistanceContext persistenceContext)
 {
     itemRepository = persistenceContext.GetActionItemRepository();
 }
Ejemplo n.º 8
0
 public ActionItemsController(IActionItemRepository actionItemRepository, IUserRepository userRepository, IMapper mapper)
 {
     _userRepository       = userRepository;
     _mapper               = mapper;
     _actionItemRepository = actionItemRepository;
 }