diff --git a/SubitonAPI/SubitonAPI/Controllers/HomeController.cs b/SubitonAPI/SubitonAPI/Controllers/HomeController.cs index b0c7364..d9ff706 100644 --- a/SubitonAPI/SubitonAPI/Controllers/HomeController.cs +++ b/SubitonAPI/SubitonAPI/Controllers/HomeController.cs @@ -16,18 +16,18 @@ public class HomeController : Controller }; [HttpGet] - public /*IActionResult*/IEnumerable Index() + public IActionResult Index() { - var rng = new Random(); + /*r rng = new Random(); return Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) - .ToArray(); + .ToArray();*/ - // return View(); + return View(); } } } \ No newline at end of file diff --git a/SubitonAPI/SubitonAPI/Startup.cs b/SubitonAPI/SubitonAPI/Startup.cs index 381a1ac..7d6d07d 100644 --- a/SubitonAPI/SubitonAPI/Startup.cs +++ b/SubitonAPI/SubitonAPI/Startup.cs @@ -39,6 +39,7 @@ public void ConfigureServices(IServiceCollection services) services.AddDbContext(x => x.UseSqlite("Data Source =Subiton.db")); services.AddControllers(); services.AddCors(); + services.AddMvc(); //claudinary config services.Configure(Configuration.GetSection("ClaudinarySettings")); //automapper init diff --git a/SubitonAPI/SubitonAPI/Views/Home/Index.cshtml b/SubitonAPI/SubitonAPI/Views/Home/Index.cshtml index 66de66f..fa1555c 100644 --- a/SubitonAPI/SubitonAPI/Views/Home/Index.cshtml +++ b/SubitonAPI/SubitonAPI/Views/Home/Index.cshtml @@ -3,19 +3,7 @@ - - @ViewData["Title"] - WebApplication1 - - - - - - - -

hello