public JsonResult ApproveUser(ApproveUser au)
        {
            var res = "";

            try
            {
                string jsr = arobj.ApproveUser(au);
                return(Json((new JavaScriptSerializer()).DeserializeObject(jsr), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                res = ex.Message.ToString();
                return(Json(res, JsonRequestBehavior.AllowGet));
            }
        }
Пример #2
0
        public string ApproveUser(ApproveUser au)
        {
            var res = "";

            try
            {
                string inputJson = (new JavaScriptSerializer()).Serialize(au);
                string jsr       = GetjsonInfo("/Admin/UpdateUserStatus", inputJson);

                return(jsr);
            }
            catch (Exception ex)
            {
                ErrorWriter.WriteLog(ex.GetType().ToString(), ex.GetType().Name.ToString(), ex.InnerException.ToString(), "UpdateUserStatus", "AdminRepository");
                res = ex.Message.ToString();
                return(res);
            }
        }