Esempio n. 1
0
 public ActionResult EditScan(int protocolId, int scanNumber)
 {
     var protocol = _survey.FetchProtocol(CurrentPractice, protocolId);
     var model = new EditScan(protocol);
     model.ScanEditLine = scanNumber;
     var oldRecord = protocol.Scans.FirstOrDefault(s => s.ScanNumber == scanNumber);
     model.CTDI = oldRecord.CTDI;
     model.DLP = oldRecord.DLP;
     model.Weight = oldRecord.Weight;
     return View(model);
 }
Esempio n. 2
0
 public ActionResult EditScan(int protocolId, EditScan model)
 {
     _survey.EditScan(CurrentPractice, protocolId, model.ScanEditLine, model.CTDI, model.DLP, model.Weight);
     return RedirectToAction("Details", new { protocolId });
 }