private LessonPlanService CreateLessonPlanService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new LessonPlanService(userId);

            return(service);
        }
Example #2
0
 public DigitalResourcesApprovalController()
 {
     unitOfWork = new UnitOfWork();
     service    = new LessonPlanService();
     mapping    = new LessonPlanMapping();
     dmapping   = new DigitalResourcesMapping();
 }
Example #3
0
 public void Init()
 {
     _user         = UserSession();
     _repository   = new UowRepository();
     _levelService = new LessonPlanService(_user, _repository);
     _sbError      = new StringBuilder("");
 }
Example #4
0
 public CategoryController()
 {
     unitOfWork = new UnitOfWork();
     service    = new LessonPlanService();
     mapping    = new LessonPlanMapping();
     model      = new LessonPlanModel();
     dmapping   = new DigitalResourcesMapping();
 }
 public CommunicationController()
 {
     unitOfWork = new UnitOfWork();
     service    = new LessonPlanService();
     mapping    = new LessonPlanMapping();
     model      = new LessonPlanModel();
     dmapping   = new DigitalResourcesMapping();
     db         = new Nahda_AttendanceEntities();
 }
Example #6
0
 public void ProcessPersonFirstLogin(int id)
 {
     if (Context.PersonId != id)
     {
         throw new ChalkableSecurityException();
     }
     DoUpdate(uow =>
     {
         var da = new PersonDataAccess(uow);
         var p  = da.GetById(id);
         if (p.FirstLoginDate.HasValue)
         {
             return;
         }
         p.FirstLoginDate = Context.NowSchoolTime;
         da.Update(p);
         ServiceLocator.ClassAnnouncementService.SetAnnouncementsAsComplete(Context.NowSchoolTime, true);
         LessonPlanService.SetAnnouncementsAsComplete(uow, ServiceLocator, Context.NowSchoolTime, true);
         AdminAnnouncementService.SetAnnouncementsAsComplete(uow, ServiceLocator, Context.NowSchoolTime, true);
     });
 }
 public ApprovalController()
 {
     unitOfWork = new UnitOfWork();
     service    = new LessonPlanService();
     mapping    = new LessonPlanMapping();
 }