Пример #1
0
        public async Task <bool> DeleteAsync(IRepositoryBranch branch)
        {
            Ensure.NotNull(branch, nameof(branch));

            return(await db.RepositoryBranches.PatchAsync(branch.Id, new[] {
                Change.Replace("deleted", Func("NOW"))
            }, condition : IsNull("deleted")) > 0);
        }
Пример #2
0
 public BusinessBranch(IRepositoryBase <Branch> repositoryBase, IUnitOfWork uow, IRepositoryBranch repositoryBranch)
     : base(repositoryBase, uow)
 {
     _repositoryBranch = repositoryBranch;
 }