public IActionResult Get()
 {
     // wrap the object to be an action result
     return(new ObjectResult(_widgetRepo.GetAll()));
 }
 public IEnumerable <IWidget> Get()
 {
     return(_widgetRepo.GetAll());
 }
Esempio n. 3
0
        public async Task <IActionResult> GetAllWidgets()
        {
            var repo = await _repo.GetAll();

            return(Ok(repo));
        }
 public IActionResult Get()
 {
     return(new ObjectResult(_widgetRepo.GetAll()));
 }
Esempio n. 5
0
 public IEnumerable <IWidget> Get()
 {
     //return new ObjectResult(_widgetRepo.GetAll());
     return(_widgetRepo.GetAll());
 }