mobilefish

Untitled

Jun 6th, 2021
920
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Builder;
  6. using Microsoft.AspNetCore.Hosting;
  7. using Microsoft.AspNetCore.Http;
  8. using Microsoft.Extensions.DependencyInjection;
  9.  
  10. namespace CRUD_Operations
  11. {
  12.     public class Startup
  13.     {
  14.         public void ConfigureServices(IServiceCollection services)
  15.         {
  16.             services.AddMvc();
  17.         }
  18.         // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
  19.         public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  20.         {
  21.             if (env.IsDevelopment())
  22.             {
  23.                 app.UseDeveloperExceptionPage();
  24.             }
  25.             app.UseStaticFiles();
  26.             app.UseMvc(routes =>
  27.             {
  28.                 routes.MapRoute(
  29.                     name: "default",
  30.                     template: "{controller=Home}/{action=Index}/{id?}");
  31.             });
  32.         }
  33.     }
  34. }
  35.  
RAW Paste Data