public async Task <JsonResult> GetWordsFromClient(string data) { List <Word> words = null; Dictionary <string, string> response = null; int res = -1; if (data != null) { words = JsonConvert.DeserializeObject <List <Word> >(data.ToString()); //words.ForEach(i => i.IsRepeat = true); SqliteHelper sqliteHelper = new SqliteHelper(); res = await sqliteHelper.AddEntiesToTable(words); response = new Dictionary <string, string>(); response.Add("message", "Ok"); response.Add("res", res.ToString()); } else { response = new Dictionary <string, string>(); response.Add("message", "BookController.GetWordsFromClient(data): Error - data is null"); response.Add("res", res.ToString()); } return(Json(response)); }