using System.Collections.Generic;
namespace HelloWorldMvcApp
public class HomeController : Controller
private string GetExample(int id, int id2){
"getThing where someid == "+ id
+ " and anotherid ==" + id2;
public ActionResult Index(int? exampleId, int? exampleId2, int optionalId = 0){
var foo = GetExample(exampleId.Value, exampleId2.Value);
var example = new ExampleModel();
example.Thing2 = "GetData where existing shit exists on id == " + optionalId;
public ActionResult Index(){