public string SerializeCreateNewListContact(string nombreLista, int idCarpeta)
        {
            var model = new CreateListModel()
            {
                name     = nombreLista,
                folderId = idCarpeta
            };

            return(JsonConvert.SerializeObject(model));
        }
        public async Task <IActionResult> CreateList(CreateListModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var list = await _listService.CreateListAsync(model.Title);

            return(RedirectToAction("Index", "List", new
            {
                id = list.Id,
                token = list.TokenString
            }));
        }