public async Task <IActionResult> Get() { var b = await _repository.GetAsync(o => o.Id == "1"); if (b == null) { return(Ok("null")); } return(Ok(b.TenantId.ToString())); }
public async Task <SampleModel> Get(string id) { return(await _repository.GetAsync(id)); }