Ejemplo n.º 1
0
        public ActionResult Clone(CloneMatrixEditModel viewmodel)
        {
            if (ModelState.IsValid)
            {
                _matrixService.Clone(viewmodel.Id, viewmodel.Name, User.Identity.Name, DateTime.UtcNow);
                TempData.Add("SuccessMessage", "The matrix was cloned successfully");
                return RedirectToAction("Detail", "Client", new { id = viewmodel.ClientId });
            }

            return View(viewmodel);
        }
Ejemplo n.º 2
0
        public ActionResult Clone(string id, string clientId)
        {
            var viewModel = new CloneMatrixEditModel()
                                {
                                    Id = id,
                                    ClientId = clientId
                                };

            return View(viewModel);
        }