コード例 #1
0
        public IActionResult Get()
        {
            var deals = dealRepository.GetDeals();

            return(new OkObjectResult(deals));
        }
コード例 #2
0
        public async Task <IHttpActionResult> All()
        {
            IList <DealResponseViewModel> deals = await _repo.GetDeals();

            return(Ok(deals));
        }