public async Task <ActionResult <Rider> > GetByName(string name) { var result = await _riderRepository.GetByName(name); if (result == null) { return(NotFound()); } return(Ok(result)); }
public async Task <ActionResult <Rider> > GetByName(string name) { var result = await _riderRepository.GetByName(name); if (result == null) { return(NotFound()); } return(Ok(result)); }