public bool TryGetValue(string key, out ModelState modelState)
 {
     System.Web.Mvc.ModelState ms;
     var result = _modelState.TryGetValue(key, out ms);
     if (result)
     {
         modelState = new FormFactoryModelState(ms);
     }
     else
     {
         modelState = null;
     }
     return result;
 }
        public bool TryGetValue(string key, out ModelState modelState)
        {
            System.Web.Mvc.ModelState ms;
            var result = _modelState.TryGetValue(key, out ms);

            if (result)
            {
                modelState = new FormFactoryModelState(ms);
            }
            else
            {
                modelState = null;
            }
            return(result);
        }