////Other methods public JsonResult SaveImages(long id, string images) { JavaScriptSerializer serializer = new JavaScriptSerializer(); var listImages = serializer.Deserialize <List <string> >(images); XElement xElement = new XElement("Images"); foreach (var item in listImages) { var subStringItem = item.Substring(22); xElement.Add(new XElement("Image", subStringItem)); } StadiumDao dao = new StadiumDao(); try { dao.UpdateImages(id, xElement.ToString()); return(Json(new { status = true })); } catch (Exception ex) { return(Json(new { status = false })); } }