Esempio n. 1
0
        public ActionResult Edit(string id)
        {
            var eventDto = _timeTableService.GetEventDTOById(new Guid(id));
            var @event   = _mapper.Map <EventDTO, EventViewModel>(eventDto);

            return(View(@event));
        }
Esempio n. 2
0
            protected override void OnEventMove(DayPilot.Web.Mvc.Events.Calendar.EventMoveArgs e)
            {
                var eventDto = _timeTableService.GetEventDTOById(new Guid(e.Id));

                eventDto.Start = e.NewStart;
                eventDto.End   = e.NewEnd;
                _timeTableService.UpdateEvent(eventDto);

                Update();
            }