public IActionResult GetShips() { var response = new GetShipsViewModel { TimeFromStart = Game.Instance.TimeFromStart, Ships = Game.Instance.RangerShipListActive, Dominators = Game.Instance.DominatorShipListActive }; return(Json(response)); }
public JsonResult GetShips() { var response = new GetShipsViewModel { TimeFromStart = Game.Instance.TimeFromStart, Ships = Game.Instance.RangerShipListActive, Dominators = Game.Instance.DominatorShipListActive }; return(Json(response, JsonRequestBehavior.AllowGet)); }