コード例 #1
0
 public ResponseClass GetCurrentTime()
 {
     ResponseClass response = new ResponseClass();
     Account_Repository accountRepo = new Account_Repository();
     try
     {
         response.response = accountRepo.GetCurrentTime().ToString();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return response;
 }
コード例 #2
0
        public ResponseClass GetAccount(string firstname)
        {
            ResponseClass account = new ResponseClass();
            Account_Repository accountRepo = new Account_Repository();
            try
            {
                account.response = Accounts.TblToData(accountRepo.GetAccount(firstname)).Email;

            }
            catch (Exception ex)
            {
                throw ex;
            }
            return account;
        }