public bool Delete(Guid id)
        {
            var account = SafenedContext.BankAccount.FirstOrDefault(a => a.Id == id);

            if (account != null)
            {
                SafenedContext.BankAccount.Remove(account);
                return(SafenedContext.SaveChanges() > 0);
            }

            return(false);
        }
Exemple #2
0
 public UserRepository(SafenedContext customerContext) : base(customerContext)
 {
 }
Exemple #3
0
 public Repository(SafenedContext safenedContext)
 {
     SafenedContext = safenedContext;
 }
 public BankAccountRepository(SafenedContext customerContext) : base(customerContext)
 {
 }