public JsonResult GetNumbers2(int x, int y) { RandomNumbersGenerator numberGenerator = new RandomNumbersGenerator(); var table = numberGenerator.ReturnNumbers(x, y); return(Json(table, JsonRequestBehavior.AllowGet)); }
public JsonResult GetNumbers4(int x1, int y1, int x2, int y2) { RandomNumbersGenerator numberGenerator1 = new RandomNumbersGenerator(); RandomNumbersGenerator numberGenerator2 = new RandomNumbersGenerator(); var table1 = numberGenerator1.ReturnNumbers(x1, y1); var table2 = numberGenerator2.ReturnNumbers(x2, y2); return(Json(new { tab1 = table1, tab2 = table2 }, JsonRequestBehavior.AllowGet)); }