コード例 #1
0
        public async Task <ResponseModel <UserModel> > AddUserToConf(string token, int conferenceId, UserType type)
        {
            var result = await UniversalMethod <Dictionary <string, string>, ResponseModel <UserModel> >(new Dictionary <string, string>(1) { { "type", type.GetLocalisedDescription() } }, ProjectConsts.AddUserToConfMethodName, //TODO: move to enums
                                                                                                         AppResources.GetResource("Error"), new object[] { token, conferenceId },
                                                                                                         true, "application/x-www-form-urlencoded");

            return(result);
        }