Esempio n. 1
0
        public JsonResult GetEvent(int id)
        {
            Mapper.CreateMap <EventDTO, EventViewModel>();
            var events = Mapper.Map <EventDTO, EventViewModel>(crmService.GetEvent(id));

            return(Json(events, JsonRequestBehavior.AllowGet));
        }