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