public PartialViewResult ListReferences(string guid) { var viewManager = new ReferenceViewManager(GetCurrentUser()); var model = viewManager.CreateReferenceInfoViewModel(guid); return(PartialView(model)); }
public PartialViewResult ListSpeciesFactReference(IReference reference) { var viewManager = new ReferenceViewManager(GetCurrentUser()); ReferenceInfoViewModel model = viewManager.CreateReferenceInfoViewModel(reference); return(PartialView(model)); }
public ActionResult Info(string guid, int?taxonId) { if (guid == null) { var errorModelManger = new ErrorModelManager(new Exception(), "Reference", "info"); ErrorViewModel errorModel = errorModelManger.GetErrorViewModel("Reference info error", "Reference info error", "No GUID (unique id) is specified.", null); return(View("ErrorInfo", errorModel)); } var viewManager = new ReferenceViewManager(GetCurrentUser()); var model = viewManager.CreateReferenceInfoViewModel(guid); model.TaxonId = taxonId.HasValue ? taxonId.Value : TaxonIdentifier.Id; return(View(model)); }