Beispiel #1
0
        public override async Task <AutoDtoList> GetAutos(Empty request, ServerCallContext context)
        {
            var response = new AutoDtoList();

            response.Items.AddRange(await autoManager.GetAllAutos().ConvertToDtos());
            return(response);
        }
 public List <AutoDto> GetAllAutoDtos()
 {
     WriteActualMethod();
     return(AutoManager.GetAllAutos().ConvertToDtos());
 }