public JsonResult WordTranslate(int[] id) { ApplicationUser user = Session["User"] as ApplicationUser; SetPXLevel(id.Length); for (int i = 0; i < id.Length; i++) { SqlQueries.AddIdToWordDatabase(user.UserName, id[i]); } return(Json(new { response = "Sucsses" }, JsonRequestBehavior.AllowGet)); }