title: When controller call method from another class produce produce invalid operation
body: <p>Calling a method from controller produce the error InvalidOperationException: Unable to resolve service for type 'AwardManagement.Class.Season' while attempting to activate 'AwardManagement.Controllers.TabsController'.</p>
  
  <p>This is the code call from Controller</p>
  
  <pre><code>
     public TabsController(AwardContext context,Season seasons)
     {
         _context = context;
         _seasons = seasons;
     }
     public ActionResult GetTabs(int id)
     {
         var tabs =  _context.Tabs.Find(id);
         if (tabs == null)
         {
            return NotFound();
         }
         var season = _seasons.GetSingle(tabs.SeasonId);
         var result = new { tab = tabs, season = season };
         return  Ok(result);
     }
  </code></pre>
  
  <p>GetSingle() Definition in Season Class</p>
  
  <pre><code>public class Season
  {
       private readonly AwardContext _context;
       public Season(AwardContext context)
       {
          _context = context;
       } 
       public  Seasons GetSingle(int? id)
       {
          return _context.Seasons.FirstOrDefault(x =&gt; x.Id == id);
       }
   }
  </code></pre>