Exemplo n.º 1
0
        public JsonResult GetUserProfile(GetUserProfileModel up)
        {
            var res = "";

            try
            {
                string jsr = ur.GetUserProfile(up);
                return(Json((new JavaScriptSerializer()).DeserializeObject(jsr), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                ErrorWriter.WriteLog(ex.GetType().ToString(), ex.GetType().Name.ToString(), ex.InnerException.ToString(), "GetUserProfile", "UserDashboardController");
                res = ex.Message.ToString();
                return(Json(res, JsonRequestBehavior.AllowGet));
            }
        }
Exemplo n.º 2
0
        public string GetUserProfile(GetUserProfileModel jp)
        {
            var res = "";

            try
            {
                string inputJson = (new JavaScriptSerializer()).Serialize(jp);
                string jsr       = GetjsonInfo("/UserDetails/GetUserPersonalDeatails", inputJson);

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