public async Task <IActionResult> SetMainPhoto(int amenityID, int id) { var result = await _photoService.PhotoSetToMain(amenityID, id); if (result == 99) { return(NotFound()); } if (result == 98) { return(BadRequest("This is already the main photo.")); } if (result == 1) { return(NoContent()); } return(BadRequest("Could not set photo to main.")); }