public List <Calendar> GetAll() { UnitOfWork uow = new UnitOfWork(); var calendarManager = new CalendarManager(uow); return(calendarManager.GetAll().ToList()); }
public IEnumerable <CalendarJson> GetCalendarItems() { var manager = new CalendarManager(new UnitOfWork()); var calenders = manager.GetAll(); var result = CalendarAssembler.ToJsons(calenders); return(result); }
public IEnumerable <CalendarJson> GetCalendarItems() { var manager = new CalendarManager(this._uow); var calenders = manager.GetAll(); var result = CalendarAssembler.ToJsons(calenders, this._uow); return(result); }