/// <summary>
 /// ReadOnlyEntityController constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="userManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="membershipManager"></param>
 /// <param name="configuration"></param>
 protected ReadOnlyEntityController(IReadOnlyEntityRepository <T> repository,
                                    ApplicationIdentityUserManager userManager,
                                    IHttpContextAccessor httpContextAccessor,
                                    IMembershipManager membershipManager,
                                    IConfiguration configuration) : base(httpContextAccessor, userManager, membershipManager)
 {
     readRepository = repository;
     config         = configuration;
     readRepository.SetContext(SecurityContext);
 }