Example #1
0
        public ActionResult GetAllEntities()
        {
            OperateResult or = PerformanceManager.GetAll();

            if (or.status == OperateStatus.Success &&
                or.data != null)
            {
                return(Json(or.data, JsonRequestBehavior.AllowGet));
            }


            return(Json(or, JsonRequestBehavior.AllowGet));
        }