Exemplo n.º 1
0
        public async Task <IHttpActionResult> Get()
        {
            var items = await _furnitureRepository.GetAllDataAsync();

            return(Ok(items));
        }
Exemplo n.º 2
0
        // GET: Furnitures
        public async Task <ActionResult> Index()
        {
            var list = await _furnitureRepository.GetAllDataAsync();

            return(View(list));
        }