Пример #1
0
        public ActionResult ViewEditSequenceDialog(String sequenceId)
        {
            EditSequenceModel editScriptModel = new EditSequenceModel();

            editScriptModel.Sequence = _sequenceService.GetSequence(sequenceId);

            return(PartialView("Partials/EditSequence", editScriptModel));
        }
Пример #2
0
        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"));
        }