예제 #1
0
        public ActionResult Update(TemplateViewModel viewModel)
        {
            try
            {
                var request = viewModel.MapTo<UpdateTemplateRequest>();
                var response = _templateService.UpdateTemplate(request);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
예제 #2
0
 public ActionResult Create(TemplateViewModel viewModel)
 {
     _templateService.CreateTemplate(viewModel.MapTo<CreateTemplateRequest>());
     return RedirectToAction("Index");
 }
예제 #3
0
 public ActionResult Preview(TemplateViewModel viewModel)
 {
     return View(viewModel);
 }