public async Task <IHttpActionResult> GetAll(FilterDto filter) { filter.StatusCode = 0;//только открытые var result = await _giftRepository.GetGifts(filter); return(SuccessApiResult(result)); }
public IActionResult Index() { var gifts = _iGiftRepository.GetGifts().Result; return(View(gifts)); return(View()); }