public async Task <TipResponse> GetByIdAsync(int id) { var existingTip = await _tipRepository.FindById(id); if (existingTip == null) { return(new TipResponse("Tip not found")); } return(new TipResponse(existingTip)); }
public async Task <TipResponse> GetByIdAsync(int id) { var existingTip = await _tipRepository.FindById(id); if (existingTip == null) { return(new TipResponse("Tip not found")); } return(new TipResponse(existingTip)); }