public void Login(string userName, string password) { var useCase = new UserLoginUseCase(_context); var result = useCase.Login(userName, password); if (result.Status == UseCaseStatus.Unauthorized) { Unauthorized(); } Ok(); }
public void WhenUserLogsInWithUserAnd(string userName, string password) { Result = _useCase.Login(userName, password); }