Top "Asp.net-core-mvc" questions

ASP.

MVC 6 HttpPostedFileBase?

I am attempting to upload an image using MVC 6; however, I am not able to find the class HttpPostedFileBase. I …

asp.net-core-mvc httppostedfilebase
How to use RestSharp.NetCore in asp.net core

I have gone through the http://restsharp.org/ code which work greats. Below is the code of RestSharp with out …

c# asp.net-core asp.net-core-mvc restsharp
ASP.NET Core 2 Unable to resolve service for type Microsoft EntityFrameworkCore DbContext

When I run my asp.net core 2 projects I get the following error message: InvalidOperationException: Unable to resolve service for …

c# dependency-injection asp.net-core asp.net-core-mvc asp.net-core-2.0
ASP.NET Core equivalent of ASP.NET MVC 5's HttpException

In ASP.NET MVC 5 you could throw a HttpException with a HTTP code and this would set the response like …

c# .net asp.net-core asp.net-core-mvc httpexception
OAuth Authorization Service in ASP.NET Core

In Web API 2, you used to be able to create an endpoint to issue a token by setting up an …

asp.net oauth asp.net-core asp.net-core-mvc
How to design a Repository Pattern with Dependency Injection in ASP.NET Core MVC?

Being fairly new to ASP.NET Core 1.0 MVC, I have decided to use a Repository Pattern for an MVC Core …

c# asp.net-mvc asp.net-core-mvc repository-pattern
How to start Quartz in ASP.NET Core?

I have the following class public class MyEmailService { public async Task<bool> SendAdminEmails() { ... } public async Task<bool&…

asp.net-core asp.net-core-mvc quartz.net
Where is Request.IsAjaxRequest() in Asp.Net Core MVC?

To learn more about the new exciting Asp.Net-5 framework, I'm trying to build a web application using the newly …

c# asp.net-mvc asp.net-core asp.net-core-mvc
Generic repository in ASP.NET Core without having a separate AddScoped line per table in Startup.cs?

I have a generic repository in my project. Consider the following controller snippet public class Lookup1Controller : Controller { readonly MyDbContext _…

generics dependency-injection asp.net-core asp.net-core-mvc
How to register ILogger for injection in ASP.NET MVC 6

I have a ASP.NET MVC 6 (beta-4) app. public void ConfigureServices(IServiceCollection services) { // Logging services.AddLogging(); // ... } public void Configure(IApplicationBuilder …

c# logging dependency-injection asp.net-core-mvc