Пример #1
0
        public static object GetDetails(string mode)
        {
            try
            {
                if (Utils.LoggedUser == null && (mode == "e" || mode == "v"))
                {
                    var mr = new ModelResponse(new Exception("Not authorized!"));
                    return(Utils.ServiceResponse(pageCode, mr));
                }

                var result = individualManager.GetProfile(Utils.LoggedUser, (long)Utils.LoggedUser.PortalUserId,
                                                          (int)Utils.GetLanguage());
                return(Utils.ServiceResponse(pageCode, result));
            }
            catch (Exception ex)
            {
                var mr = new ModelResponse(new Exception(ex.Message));
                return(Utils.ServiceResponse(pageCode, mr));
            }
        }
Пример #2
0
        public static object GetProfile(long id, string langCode)
        {
            var mr = IndMgr.GetProfile(Utils.LoggedUser, id, (int)Utils.GetLanguage(langCode));

            return(Utils.ServiceResponse(PageCode, mr));
        }