Exemplo n.º 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 > ");
        }
Exemplo n.º 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"));
        }
Exemplo n.º 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);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public int DeletePosition(int id)
        {
            var deleteposition = HttpClientApi.DeleteAsync <int>("http://localhost:12345/api/Position/DeletePosition?id=" + id);

            return(deleteposition);
        }
Exemplo n.º 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);
        }
        /// <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"));
        }
Exemplo n.º 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"));
 }