Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ViewResult Create()
- {
- var createStudyModel = new CreateStudyModel();
- return View(createStudyModel);
- }
- [HttpPost]
- public ActionResult Create(CreateStudyModel createStudyModel)
- {
- try
- {
- //TODO: Send CreateStudyCommand
- return RedirectToAction("Edit", new { scientificStudyId = new Guid("{1C965285-788A-4B67-9894-3D0D46949F11}") });
- }
- catch
- {
- return View(createStudyModel);
- }
- }
- [GET("ScientificStudy/Create/{scientificStudyId}")]
- public ActionResult Edit(Guid scientificStudyId)
- {
- //TODO: Query real model
- var model = new EditStudyModel() {StudyNr = "T01", StudyName = "Test"};
- return View(model);
- }
- [HttpPost]
- public ActionResult Edit(EditStudyModel editStudyModel)
- {
- try
- {
- //TODO: Send UpdateStudyCommand
- return RedirectToAction(""); //TODO: Terug naar Studie lijst
- }
- catch
- {
- return View(editStudyModel);
- }
- }
- return RedirectToAction("Edit", new { scientificStudyId = "{1C965285-788A-4B67-9894-3D0D46949F11}" });
- public ActionResult Edit(string scientificStudyId)
Add Comment
Please, Sign In to add comment