title: Repository and UoW pattern with service layer
body: <p>I'm using Repository and UoW pattern. My services look like this:</p>
  
  <pre><code>public class MyService : IService
  {
      private readonly IUnitOfWork&lt;MyContext&gt; unitOfWork;
      private readonly IMyRepository myRepository;
  
      public MyService(IUnitOfWork&lt;MyContext&gt; unitOfWork, IMyRepository myRepository)
      {
          this.unitOfWork = unitOfWork;
          this.myRepository = myRepository;
      }
  
      //Methods...
  }
  </code></pre>
  
  <p>Within services, I need to use other entities (for example to check for rights, etc). </p>
  
  <p>Is it recommended to use the relevant repositories in the service or use the services directly?</p>
  
  <p>Also, for each user we have rights (boolean) for each CRUD action. These rights are stored in the database. </p>
  
  <p>Should checking of rights be done at the controller level or at the service level?</p>