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); }
public ActionResult Clone(string id, string clientId) { var viewModel = new CloneMatrixEditModel() { Id = id, ClientId = clientId }; return View(viewModel); }