public IEnumerable <Message> Get()
 {
     return(_svc.GetQuotes().Select(q => new Message {
         Text = q
     }));
 }
 public IEnumerable <string> Get()
 {
     return(_svc.GetQuotes());
 }
示例#3
0
 public IActionResult Get() =>
 Ok(_quotesService.GetQuotes(GetUserId()));