Ejemplo n.º 1
0
        public SignInResponse SignIn(string name, string email)
        {
            User user = _iIdeaRepository.SignIn(name, email);

            if (user.Id != null)
            {
                return(new SignInResponse(true, "", user.Id, user.Role));
            }
            else
            {
                return(new SignInResponse(true, "User not found", null, null));
            }
        }