public ActionResult Delete() { Business.Sys_FlowerChange Sys_Flower = new Business.Sys_FlowerChange(); try { string ids = Request["ids"]; string strwhere = " and id in(" + ids + ")"; List <Model.FlowerChange> list = Sys_Flower.GetFlowerChange(strwhere); foreach (var item in list) { if (Sys_Flower.DeleteFlowerWatch(item.id.ToString())) { DeleteFlowerPhoto(item.Photo); DeleteFlowerPhoto(item.ChangePhoto); } } return(Content("True")); } catch (Exception ex) { return(Content("Fasle")); } }