public JsonResult DeleteHomepageImage(string id, string oper) { if (string.IsNullOrEmpty(id)) { return(JSON(false)); } List <long> ids = new List <long>(); foreach (string s in id.Split(',')) { ids.Add(Convert.ToInt64(s)); } return(JSON(GeneralRepository.DeleteHomepageImages(ids.ToArray()))); }