public List <Calendar> GetAll()
        {
            UnitOfWork uow             = new UnitOfWork();
            var        calendarManager = new CalendarManager(uow);

            return(calendarManager.GetAll().ToList());
        }
Exemple #2
0
        public IEnumerable <CalendarJson> GetCalendarItems()
        {
            var manager   = new CalendarManager(new UnitOfWork());
            var calenders = manager.GetAll();
            var result    = CalendarAssembler.ToJsons(calenders);

            return(result);
        }
Exemple #3
0
        public IEnumerable <CalendarJson> GetCalendarItems()
        {
            var manager   = new CalendarManager(this._uow);
            var calenders = manager.GetAll();
            var result    = CalendarAssembler.ToJsons(calenders, this._uow);

            return(result);
        }