コード例 #1
0
        public static object GetDetails()
        {
            try
            {
                if (Utils.LoggedUser == null)
                {
                    ModelResponse mr = new ModelResponse(new Exception("Not authorized!"));
                    return(Utils.ServiceResponse(pageCode, mr));
                }

                var result = organizationManager.GetOrganizationDetails((long)Utils.LoggedUser.PortalUserId, Utils.GetLanguage());
                return(Utils.ServiceResponse(pageCode, result));
            }
            catch (Exception ex)
            {
                ModelResponse mr = new ModelResponse(new Exception(ex.Message));
                return(Utils.ServiceResponse(pageCode, mr));
            }
        }