よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <IActionResult> AddFollower([FromRoute] string albumId, [FromRoute] string followerEmail) { var requestor = await GetUser(); var follower = await GetUserByEmail(followerEmail); if (await _albumService.AddFollower(albumId, follower, requestor)) { return(StatusCode(StatusCodes.Status201Created)); } return(BadRequest()); }