public ActionResult Index(string q = null, int o = 0, int c = 50) { if (o < 0) o = 0; if (c < 1) o = 1; if (c > 100) o = 100; var groups = new Groups(); var model = groups.SearchGroups(q, o, c); return View(model); }