예제 #1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public ActionResult Delete(string id)
        {
            var model = IPinTuService.Find(id);

            if (model != null && model.UserID == LoginUser.ID)
            {
                IPinTuService.Delete(id);
                return(Redirect("/shop/actList"));
            }
            else
            {
                return(Forbidden());
            }
        }
예제 #2
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <returns></returns>
 public ActionResult Delete(string ids)
 {
     return(JResult(IPinTuService.Delete(ids)));
 }