public bool VerifyUser(string username, string password) { var result = _service.ValidateUser(username, password); if (result) { if (_repo != null) { var cart = _repo.LoadCart(username); } } return(result); }