Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Inconsistent accesibility:parameter type; HomeControler(IRepositoryissue) is less accessible then method

$
0
0

HomeController.Homecontroller(Irepository<Issue>issue)

Hi, I don't understand why I am getting this error. Below is part of the home controller that I am using.  I have tried everything. I am using aspnetcore mvc 3.1.

using System;
using System.Collections.Generic;  (is not in dark print)
using System.Linq;
using System.Threading.Tasks; (is not in dark print)
using Bumples15.Models;
using Bumples15.Services;
using Bumples15.ViewModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering; (is not in dark print)

namespace Bumples15.Controllers
{
public class HomeController : Controller
{
private readonly IRepository<Issue> _issueRepo;

public HomeController(IRepository<Issue> issue)
{
_issueRepo = issue;
}

Thanks, Jen


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>