public async Task <ActionResult <SpaceDTO> > FindAsync(string id) { Guid guidId; bool isGuid = Guid.TryParse(id, out guidId); var item = isGuid ? await _spaces.FindAsync(guidId) : await _spaces.FindAsync(id); return(Ok(Mappers.GetSpaceDTO(item))); }