예제 #1
0
 public async Task <IEnumerable <string> > Get()
 {
     return(await Task.Run(() =>
     {
         return service.GetAll();
     }));
 }
예제 #2
0
 public ActionResult <IEnumerable <string> > Get()
 {
     return(Ok(_service.GetAll()));
 }
예제 #3
0
 public virtual IEnumerable <string> Get()
 {
     return(_valueService.GetAll());
 }
예제 #4
0
 public IEnumerable <string> Get()
 {
     return(valuesService.GetAll());
 }
예제 #5
0
        public IActionResult Index()
        {
            var values = _ValuesService.GetAll();

            return(View(values));
        }
 public IEnumerable <string> Get()
 {
     return(ApiResult(() => _valueService.GetAll()));
 }