public object GetPeopleNames(string schemaId) { var names = CustomNamingPeople.GetPeopleNames(schemaId); return(new { names.Id, names.UserCaption, names.UsersCaption, names.GroupCaption, names.GroupsCaption, names.UserPostCaption, names.RegDateCaption, names.GroupHeadCaption, names.GuestCaption, names.GuestsCaption, }); }
public object GetPeopleNames(string schemaId) { SecurityContext.DemandPermissions(SecutiryConstants.EditPortalSettings); var names = CustomNamingPeople.GetPeopleNames(schemaId); return(new { Id = names.Id, UserCaption = names.UserCaption, UsersCaption = names.UsersCaption, GroupCaption = names.GroupCaption, GroupsCaption = names.GroupsCaption, UserPostCaption = names.UserPostCaption, RegDateCaption = names.RegDateCaption, GroupHeadCaption = names.GroupHeadCaption, GlobalHeadCaption = names.GlobalHeadCaption, AddUsersCaption = names.AddUsersCaption }); }