private LessonPlanService CreateLessonPlanService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LessonPlanService(userId); return(service); }
public DigitalResourcesApprovalController() { unitOfWork = new UnitOfWork(); service = new LessonPlanService(); mapping = new LessonPlanMapping(); dmapping = new DigitalResourcesMapping(); }
public void Init() { _user = UserSession(); _repository = new UowRepository(); _levelService = new LessonPlanService(_user, _repository); _sbError = new StringBuilder(""); }
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(); }
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(); }