Exemple #1
0
        public async void GetInvites()
        {
            List <string> fr = new List <string>();

            foreach (var x in friendsService.InvitesGet(new PersonDTO()
            {
                Login = User.Identity.Name
            }))
            {
                fr.Add(x.Inviter_Login);
            }

            Response.ContentType = "application/x-www-form-urlencoded";
            await Response.WriteAsync(JsonConvert.SerializeObject(fr, new JsonSerializerSettings {
                Formatting = Formatting.Indented
            }));
        }