コード例 #1
0
        /// <summary>
        /// 删除配置
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult EnableApprovalConfiguration(int id)
        {
            var result = HttpClientApi.DeleteAsync <int>(HttpHelper.Url + "Activity/EnableApprovalConfiguration?id=" + id);

            //var result = 0;
            //if (result > 0)
            //{
            //    return Redirect("/Approval/Index");
            //}
            return(Redirect("/Approval/ApprovalConfigurationDtoIndex"));
            //return Content("<script>$(function() {layer.msg('玩命提示中'); })</ script > ");
        }
コード例 #2
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Delete(int id)
        {
            var i = HttpClientApi.DeleteAsync <int>(HttpHelper.Url + "Group/delete?id=" + id);

            return(Redirect("/Group/Index"));
        }
コード例 #3
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Delete(int id)
        {
            var i = HttpClientApi.DeleteAsync <int>(HttpHelper.Url + "Solitaire/Delete?id=" + id);

            return(i);
        }
コード例 #4
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public int DeletePosition(int id)
        {
            var deleteposition = HttpClientApi.DeleteAsync <int>("http://localhost:12345/api/Position/DeletePosition?id=" + id);

            return(deleteposition);
        }
コード例 #5
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public int DeleteHierarchie(int id)
        {
            var deletehierarchy = HttpClientApi.DeleteAsync <int>("http://localhost:12345/api/Hierarchy/DeleteHierarchy?id=" + id);

            return(deletehierarchy);
        }
コード例 #6
0
        /// <summary>
        /// 启用
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Enable(int id)
        {
            var i = HttpClientApi.DeleteAsync <int>(HttpHelper.Url + "Clinical/Enable?id=" + id);

            return(Redirect("/Clinical/Index"));
        }
コード例 #7
0
 /// <summary>
 /// 删除方法  (启用禁用)
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult EnableArea(int id)
 {
     HttpClientApi.DeleteAsync <int>(HttpHelper.Url + " Areas/EnableArea?id=" + id);
     return(Redirect("/Area/IndexArea"));
 }