Example #1
0
        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);
        }
Example #2
0
 public UserRepository(SafenedContext customerContext) : base(customerContext)
 {
 }
Example #3
0
 public Repository(SafenedContext safenedContext)
 {
     SafenedContext = safenedContext;
 }
Example #4
0
 public BankAccountRepository(SafenedContext customerContext) : base(customerContext)
 {
 }