public IActionResult GetAll() { passport = CommonMethod.GetPassport(Request); ResultModel result = new ResultModel(true, service.GetAll(passport)); return(new ObjectResult(result)); }
public IActionResult Index() { var goods = _repository.GetAll(); var viewModel = goods.Select(x => new GoodsViewModel(x)); return(View(viewModel)); }
public IEnumerable <GoodViewModel> Get() { return(_goodsRepository.GetAll().Select(x => new GoodViewModel(x)).ToList()); }
public async Task <List <Good> > GetGoods() { return(await _goodRepo.GetAll()); }
public ActionResult Index(short id = 1) { return(View("Index", new PageInfo <Good>(_goods.GetAll().Count(), totalPerPage, id))); }
public Task <List <Goods> > GetAll() { return(_goodsRepository.GetAll()); }