internal VaultKeep CreateVaultKeep(VaultKeep newVaultKeep) { newVaultKeep.Id = _vkRepo.Create(newVaultKeep); Keep vKeep = _kRepo.Get(newVaultKeep.KeepId); vKeep.Keeps++; _kRepo.Edit(vKeep); return(newVaultKeep); }
internal Keep Get(int id) { Keep original = _repo.Get(id); if (original == null) { throw new Exception("Invalid Id Aye"); } return(original); }
internal Keep Get(int id) { var data = _repo.Get(id); if (data == null) { throw new Exception("Invalid Id"); } return(data); }
internal IEnumerable <Keep> Get() { return(_repo.Get()); // return _repo.Get().ToList().FindAll(keep => keep.IsAvailable); }
public IEnumerable <Keep> Get() { return(_repo.Get()); }
internal IEnumerable <Keep> Get() { IEnumerable <Keep> keeps = _kRepo.Get(); return(keeps); }
internal IEnumerable <Keep> GetAll() { IEnumerable <Keep> keep = _kRepo.Get(); return(keep.ToList()); }
public IEnumerable <Keep> Get() { return(_keepsRepository.Get()); }