Пример #1
0
 public MainModule(IConverterRepository converterRepository)
 {
     Get["/"] = x => {
         var viewModel = new
         {
             converters = converterRepository.GetAll()
         };
         return View["index.cshtml", viewModel.AsJson()];
     };
 }