public ActionResult Edit(SaveMirConfigurationViewModel viewModel)
 {
     var request = viewModel.MapTo<SaveMirConfigurationRequest>();
     var response = _mirConfigurationService.Save(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     if (response.IsSuccess)
     {
         return RedirectToAction("Index");
     }
     return View("Create", viewModel);
 }
        public ActionResult Edit(SaveMirConfigurationViewModel viewModel)
        {
            var request  = viewModel.MapTo <SaveMirConfigurationRequest>();
            var response = _mirConfigurationService.Save(request);

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            if (response.IsSuccess)
            {
                return(RedirectToAction("Index"));
            }
            return(View("Create", viewModel));
        }
        public ActionResult Create()
        {
            var viewModel = new SaveMirConfigurationViewModel();

            return(View(viewModel));
        }
 public ActionResult Create()
 {
     var viewModel = new SaveMirConfigurationViewModel();
     return View(viewModel);
 }