public IActionResult GetRealtyList() { _logger.LogWarning("controller with auth called!"); var result = _realtyService.GetRealtyList(); return(Json(result)); }
public override Task <RealtyListResponse> GetRealtyList(RealtyListRequest request, ServerCallContext context) { var result = _realtyService.GetRealtyList(); var response = new RealtyListResponse(); response.Items.AddRange(result); return(Task.FromResult(response)); }