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); }
public UserRepository(SafenedContext customerContext) : base(customerContext) { }
public Repository(SafenedContext safenedContext) { SafenedContext = safenedContext; }
public BankAccountRepository(SafenedContext customerContext) : base(customerContext) { }