using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Vifir.Model.Service; using Vifir.Core; using Vifir.Model.Domain; using Vifir.Web.Code; publicpartialclass manage_Topic : BaseAction { private ITopicService service; private ITopicCategoryService categoryService;
public ITopicService Service { set{ service = value; } } public ITopicCategoryService CategoryService { set{ categoryService = value; } }
publicvoid Remove() { long id =long.Parse(Request.Params["id"]);//得到前臺傳來參數id並轉換成long service.delTopic(id);//調用業務層的delTopic方法刪除指定日誌 extFormResult =true;//指定返回ExtJS表單能識別的數據 }