예제 #1
0
 public void Delete(Account acct)
 {
     try
     {
         IAccountRepository accountRepo = new AccountsRepository();
         accountRepo.DeleteAccount(acct);
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
예제 #2
0
 public bool CreateAccount(Account acct)
 {
     try
     {
         IAccountRepository accountRepo = new AccountsRepository();
         accountRepo.UpsertAccount(acct);
         return true;
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.NotFound);
     }
 }
예제 #3
0
 public bool Create(Account acct)
 {
     try
     {
         IAccountRepository accountRepo = new AccountsRepository();
         accountRepo.UpsertAccount(acct);
         return true;
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.InternalServerError);
     }
 }
예제 #4
0
파일: User.cs 프로젝트: jonespavan/Tribes
 public User(Account regInfo)
 {
     RegistrationInfo = regInfo;
 }