public async Task <ActionResult> TimelineMemberDelete([FromRoute][GeneralTimelineName] string timeline, [FromRoute][Username] string member) { var timelineId = await _service.GetTimelineIdByNameAsync(timeline); if (!UserHasAllTimelineManagementPermission && !(await _service.HasManagePermissionAsync(timelineId, GetUserId()))) { return(ForbidWithCommonResponse()); } var userId = await _userService.GetUserIdByUsernameAsync(member); await _service.RemoveMemberAsync(timelineId, userId); return(OkWithCommonResponse()); }