public Controller(IBaseRepository <TEntity> repository, IHttpContextAccessor httpContextAccessor)
 {
     this.repository = repository;
     UserIdentity    = new UserIdentity(httpContextAccessor.HttpContext, GetType().Name);
     User            = UserIdentity.GetUser();
 }