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);
 }
 public ActionResult EditScan(int protocolId, EditScan model)
 {
     _survey.EditScan(CurrentPractice, protocolId, model.ScanEditLine, model.CTDI, model.DLP, model.Weight);
     return RedirectToAction("Details", new { protocolId });
 }