Skip to content

Commit

Permalink
apis inherit from ControllerBase instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer Monney committed Aug 4, 2019
1 parent ade79fd commit e47d9ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QuickApp/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace QuickApp.Controllers
{
[Authorize(AuthenticationSchemes = IdentityServerAuthenticationDefaults.AuthenticationScheme)]
[Route("api/[controller]")]
public class AccountController : Controller
public class AccountController : ControllerBase
{
private readonly IMapper _mapper;
private readonly IAccountManager _accountManager;
Expand Down
8 changes: 4 additions & 4 deletions QuickApp/Controllers/CustomerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
namespace QuickApp.Controllers
{
[Route("api/[controller]")]
public class CustomerController : Controller
public class CustomerController : ControllerBase
{
private readonly IMapper _mapper;
private IUnitOfWork _unitOfWork;
readonly ILogger _logger;
readonly IEmailSender _emailSender;
private readonly IUnitOfWork _unitOfWork;
private readonly ILogger _logger;
private readonly IEmailSender _emailSender;


public CustomerController(IMapper mapper, IUnitOfWork unitOfWork, ILogger<CustomerController> logger, IEmailSender emailSender)
Expand Down

0 comments on commit e47d9ed

Please sign in to comment.