public IEnumerable <Auth> getAuthentication(GetAuthenticationParam _param) { try { return(Mapper.Instance().QueryForList <Auth>(MethodBase.GetCurrentMethod().Name, _param)); } catch (Exception) { throw; } }
public ResultAuthenticationService isAuthentication(IsAuthenticationModel _param) { // DB検索用パラメータークラス用意 GetAuthenticationParam getAuthenticationParam = new GetAuthenticationParam(); getAuthenticationParam.UserId = _param.UserName; getAuthenticationParam.UserPass = _param.UserPass; // DB検索実施 IAuthenticationRepository authenticationRepository = new AuthenticationRepositoryImpl(); var result = authenticationRepository.getAuthentication(getAuthenticationParam); return(new ResultAuthenticationService(result)); }