/// <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 > "); }
/// <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")); }
/// <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); }
/// <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")); }
/// <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")); }