public JsonResult Get() { IEnumerable <Rma> response = _rmaRepo.GetAllRmas(); IEnumerable <RmaViewModel> results = Mapper.Map <IEnumerable <RmaViewModel> >(response); return(Json(results)); }
public IActionResult Index() { IEnumerable <RmaViewModel> results = null; var query = _rmaRepo.GetAllRmas().ToList(); results = Mapper.Map <IEnumerable <RmaViewModel> >(query); return(View(results)); }