// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); app.UseMvc(); app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS etc.), specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); using (RaceAppDb RcDb = new RaceAppDb()) { RcDb.Database.EnsureCreated(); var userprofile = new UserProfile() { FirstName = $"Ali", LastName = $"Baba" }; RcDb.UserProfile.Add(userprofile); RcDb.SaveChanges(); } }
public NotificationController(RaceAppDb context) { _context = context; }
public ContactController(RaceAppDb context) { _context = context; }
public UserProfileController(RaceAppDb context) { _context = context; }
public BannerController(RaceAppDb context) { _context = context; }
public PartnersController(RaceAppDb context) { _context = context; }
public DoorPrizeController(RaceAppDb context) { _context = context; }
public RaceController(RaceAppDb context) { _context = context; }
public InboxController(RaceAppDb context) { _context = context; }
public MedalController(RaceAppDb context) { _context = context; }
public CharityController(RaceAppDb context) { _context = context; }
public TransactionalHistoryController(RaceAppDb context) { _context = context; }
public ResultController(RaceAppDb context) { _context = context; }
public SubmitController(RaceAppDb context) { _context = context; }