public async Task <IHttpActionResult> GetAll(FilterDto filter)
        {
            filter.StatusCode = 0;//только открытые
            var result = await _giftRepository.GetGifts(filter);

            return(SuccessApiResult(result));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            var gifts = _iGiftRepository.GetGifts().Result;

            return(View(gifts));

            return(View());
        }