/// <summary> /// 删除 /// </summary> /// <param name="ids"></param> /// <returns></returns> public ActionResult Delete(string id) { var model = IPinTuanService.Find(id); if (model != null && model.UserID == LoginUser.ID) { IPinTuanService.Delete(id); return(Redirect("/shop/actList")); } else { return(Forbidden()); } }
/// <summary> /// 删除 /// </summary> /// <returns></returns> public ActionResult Delete(string ids) { return(JResult(IPinTuanService.Delete(ids))); }