public ActionResult ViewWatch(string watchId) { int id; try { id = Convert.ToInt32(watchId); } catch (FormatException) { return(RedirectToAction("NotFound", "Home")); } var watchDetail = watchService.ViewWatchDetail(id); if (watchDetail == null) { return(RedirectToAction("NotFound", "Home")); } watchDetail.Movement = movementService.GetMovementList(); watchDetail.WatchModel = watchModelService.GetModelsList(); return(View("~/Views/Admin/admin_manage_watch_detail.cshtml", watchDetail)); }