public async Task <IActionResult> GetById(string id) { var guid = Guid.Parse(id); var photoView = await _photosService.GetById(guid); return(Ok(photoView)); }
public async Task <IActionResult> GetById([FromRoute] Guid offerId, [FromRoute] Guid photoId) { var result = await _photosService.GetById(offerId, photoId); if (result is null) { return(BadRequest()); } return(Ok(result)); }