public async Task <IActionResult> Delete(OrganizationDeleteGet Organization) { var CurrentUser = await _userManager.GetUserAsync(User); if (await _claimCheck.CheckClaim(CurrentUser, "ApplicationRight", this.ControllerContext.RouteData.Values["controller"].ToString() + "\\" + this.ControllerContext.RouteData.Values["action"].ToString())) { Organization.UserId = CurrentUser.Id; //var CheckString = await _OrganizationProvider.DeletePostCheck(Organization); //if (CheckString.Length == 0) //{ _organizationProvider.DeletePost(CurrentUser.Id, Organization.OrganizationId); return(Ok(Organization)); //} return(BadRequest(new { IsSuccess = false, //Message = CheckString, })); } return(BadRequest(new { IsSuccess = false, Message = "No rights", })); }