public MainModule(IConverterRepository converterRepository) { Get["/"] = x => { var viewModel = new { converters = converterRepository.GetAll() }; return View["index.cshtml", viewModel.AsJson()]; }; }
public MainModule(IConverterRepository converterRepository) { Get["/"] = x => { var viewModel = new { converters = converterRepository.GetAll() }; return View["index.cshtml", viewModel.AsJson()]; }; }