Beispiel #1
0
        public string SaveCalendar(CalendarJson json)
        {
            var manager  = new CalendarManager(new UnitOfWork());
            var calendar = CalendarAssembler.ToCalender(json);

            manager.SaveCalendar(calendar);
            return("بروزرسانی با موفقیت انجام شد.");
        }
Beispiel #2
0
        public IEnumerable <CalendarJson> GetCalendarItems()
        {
            var manager   = new CalendarManager(new UnitOfWork());
            var calenders = manager.GetAll();
            var result    = CalendarAssembler.ToJsons(calenders);

            return(result);
        }
Beispiel #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);
        }
Beispiel #4
0
        public CalendarJson BuildCalendar()
        {
            var manager  = new CalendarManager(new UnitOfWork());
            var calender = manager.BuildCalendar();

            var json = CalendarAssembler.ToJson(calender);

            return(json);
        }
Beispiel #5
0
        public CalendarJson BuildCalendar()
        {
            var manager  = new CalendarManager(this._uow);
            var calender = manager.BuildCalendar();

            var json = CalendarAssembler.ToJson(calender, this._uow);

            return(json);
        }