public ActionResult Index() { var dto = _battleService.GetAllBattleDTOs(); var model = _mapper.Map <List <BattleViewModel> >(dto); return(View(model)); }
public string GetBattlesForTable() { var dto = _battleService.GetAllBattleDTOs(); var model = _mapper.Map <List <BattleViewModel> >(dto); return(JsonConvert.SerializeObject(model)); }