public IHttpActionResult DeleteFunction(string functionName) { var response = usersServices.DeleteFunction(functionName); if (response.ResultType) { return(Ok(response)); } return(Content(HttpStatusCode.BadRequest, response)); }