Пример #1
0
        static void Main()
        {
            var server = new WebServer.WebServer(8888, new ControllerRouter(), new ResourceRouter());
            var db     = new FDMCContext();

            MvcEngine.Run(server, db);
        }
Пример #2
0
 protected BaseService(FDMCContext context)
 {
     this.context = context;
 }
Пример #3
0
 public HomeController(ILogger <HomeController> logger, FDMCContext context)
 {
     _logger      = logger;
     this.context = context;
 }
 public CatsService(FDMCContext context)
 {
     _context = context;
 }
Пример #5
0
 public KittenService(FDMCContext context)
     : base(context)
 {
 }
Пример #6
0
 public CatService(FDMCContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
Пример #7
0
 public CatsController(FDMCContext context)
 {
     _context = context;
 }