public UserAssignmentController(IAssignmentService iAllAssignments, IUserAssignmentService userAssignment,
                                 UserManager <User> userManager, Microsoft.Extensions.Configuration.IConfiguration configuration)
 {
     _Assignment     = iAllAssignments;
     _userManager    = userManager;
     _UserAssignment = userAssignment;
     _configuration  = configuration;
 }
        public SystemAdminController(IUserRepositoryService userRepository, IShopRepositoryService shopRepository, IUserAssignmentService userAssignmentService)
        {
            if (userRepository == null)
            {
                throw new ArgumentNullException(nameof(userRepository));
            }
            if (shopRepository == null)
            {
                throw new ArgumentNullException(nameof(shopRepository));
            }
            if (userAssignmentService == null)
            {
                throw new ArgumentNullException(nameof(userAssignmentService));
            }

            _userRepository        = userRepository;
            _shopRepository        = shopRepository;
            _userAssignmentService = userAssignmentService;
        }