public ActionResult ViewEditSequenceDialog(String sequenceId) { EditSequenceModel editScriptModel = new EditSequenceModel(); editScriptModel.Sequence = _sequenceService.GetSequence(sequenceId); return(PartialView("Partials/EditSequence", editScriptModel)); }
public ActionResult UpdateSequence(String id, EditSequenceModel editSequenceModel) { Sequence sequence = _sequenceService.GetSequence(id); String projectId = sequence.Project.ExternalId; _sequenceService.UpdateSequence(id, editSequenceModel.Sequence.Name, editSequenceModel.Sequence.Description); return(RedirectToAction("Sequence/" + projectId + "/" + id, "Sequences")); }