public async Task <IActionResult> Delete(string userid, string downloadid) { if (userid == "@me") { userid = UserId; } var user = await _users.GetByIdAsync(userid); if (user == null) { return(NotFound(new ErrorResponse("The user does not exist."))); } var download = await _downloads.GetByIdAsync(downloadid); if (download == null) { return(NotFound(new ErrorResponse("The download does not exist."))); } await _downloads.RemoveAuthorAsync(downloadid, userid); return(NoContent()); }