Пример #1
0
 public ActionResult Add(RoleModel Rmodel)
 {
     try
     {
         _business.Add(Rmodel);
         return(Json(new { State = true, Message = "添加成功" }));
     }
     catch (AppException ex)
     {
         return(Json(new { State = false, Message = ex.Message }));
     }
     catch (Exception)
     {
         return(Json(new { State = false, Message = "未知错误,请联系管理人员" }));
     }
 }