internal Account GetOrCreateAccount(Account userInfo) { Account account = _repo.GetById(userInfo.Id); if (account == null) { return(_repo.Create(userInfo)); } return(account); }
internal Account GetOrCreateProfile(Account userInfo) { Account profile = _repo.GetById(userInfo.Id); if (profile == null) { return(_repo.Create(userInfo)); } return(profile); }
public IHttpActionResult Post(Register register) { accountsRepository.Create(register); return(Ok("Successfully")); }
public Account Create(Account newAccount) { return(_repo.Create(newAccount)); }