public JsonNetResult JsonNetError(IEnumerable <string> errors)
        {
            var result = new JsonNetResult();

            result.AddErrors(errors);
            return(result);
        }
        public JsonNetResult <T> JsonNetModelError <T>(T model)
        {
            var result = new JsonNetResult <T> {
                Data = model
            };
            var errors = ModelState.Values.SelectMany(x => x.Errors).Select(x => x.ErrorMessage);

            result.AddErrors(errors);
            return(result);
        }