public User LoginUser(string email, string password)
        {
            using (var context = new ECommerceContextDb(new ECommerceDatabase.StartupDatabase().GetOptions()))
            {
                var userEntity = context.Users.SingleOrDefault(p => string.Equals(p.Email, email, StringComparison.InvariantCultureIgnoreCase));

                if (userEntity == null)
                {
                    return(null);
                }

                var passwordDecrypted = _passwordEncryptionService.Decrypt(userEntity.Password);

                if (password == passwordDecrypted)
                {
                    return(userEntity);
                }
                else
                {
                    return(null);
                }
            }
        }