Beispiel #1
0
        public ActionResult GetUserList()
        {
            List <UserIfo> model = InvUserData.UserList(0);

            if (model.Count() == 0)
            {
                return(Json(new { status = false, msg = "No data found!" }, JsonRequestBehavior.AllowGet));
            }

            return(Json(new { status = true, msg = "Success", data = RenderPartialViewToString("_UserPartial", model) }, JsonRequestBehavior.AllowGet));
        }