public IActionResult Create(StoredDocument doc) { if (ModelState.IsValid) { int inx = _service.StoreDocument(doc); if (inx > 0) { return(RedirectToAction("Details", inx)); } } return(View(doc)); }