MVC JsonResult

public JsonResult GetJson()  
        {  
              
            var res = new JsonResult { JsonRequestBehavior = JsonRequestBehavior.AllowGet };
            res.Data = new SentResult { IsSuccess = false, ErrorMessage = "手机号已经注册过,不能重复注册" };return res;    
        }  

 

posted @ 2017-01-16 15:23  上古时期的码农  阅读(197)  评论(0编辑  收藏  举报