public ActionResult EditServer(int id = 0) { var result = _servMgr.GetServerById(id); if (result.Succeeded) { return(View(result.Result)); } else { ModelState.AddModelError(string.Empty, result.Message); return(View()); } }