public ActionResult Log() { int intValue = 0; string strValue = string.Empty; strValue = Request.QueryString["pid"]; int.TryParse(strValue, out intValue); ICollection <ErrorType> errorTypes = ErrorType.getErrorList(); ViewData["errorTypes"] = errorTypes; return(View(FindPlant(intValue))); }