Example #1
0
        public IActionResult LogIn(string email, string password)
        {
            AWSServices services = new AWSServices(dynamoDBClient, s3Client);
            User        user     = services.LogIn(email, password).Result;

            if (user == null)
            {
                return(View("Index"));
            }
            else
            {
                return(Movies(email));
            }
        }
        public IActionResult LogIn(string email, string password)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }

            AWSServices services = new AWSServices(dynamoDBClient, s3Client);
            User        user     = services.LogIn(email, password).Result;

            if (user == null)
            {
                return(View());
            }
            else
            {
                return(RedirectToAction("Movies", new { email = email }));
            }
        }