public async Task <IActionResult> UpdateImageAsync(int id, [FromBody] UpdateImage command) { if (id != AccountID) { return(Forbid()); } if (await _userImageService.ExistsForUser(id) == false) { return(BadRequest("Image doesn't exist.")); } var user = await _userService.GetAsync(id); await _userImageService.UpdateAsync(command, user); return(NoContent()); }