예제 #1
0
        internal VaultKeep CreateVaultKeep(VaultKeep newVaultKeep)
        {
            newVaultKeep.Id = _vkRepo.Create(newVaultKeep);
            Keep vKeep = _kRepo.Get(newVaultKeep.KeepId);

            vKeep.Keeps++;
            _kRepo.Edit(vKeep);
            return(newVaultKeep);
        }
예제 #2
0
        internal Keep Get(int id)
        {
            Keep original = _repo.Get(id);

            if (original == null)
            {
                throw new Exception("Invalid Id Aye");
            }
            return(original);
        }
예제 #3
0
        internal Keep Get(int id)
        {
            var data = _repo.Get(id);

            if (data == null)
            {
                throw new Exception("Invalid Id");
            }
            return(data);
        }
예제 #4
0
 internal IEnumerable <Keep> Get()
 {
     return(_repo.Get());
     //   return _repo.Get().ToList().FindAll(keep => keep.IsAvailable);
 }
예제 #5
0
 public IEnumerable <Keep> Get()
 {
     return(_repo.Get());
 }
예제 #6
0
        internal IEnumerable <Keep> Get()
        {
            IEnumerable <Keep> keeps = _kRepo.Get();

            return(keeps);
        }
예제 #7
0
        internal IEnumerable <Keep> GetAll()
        {
            IEnumerable <Keep> keep = _kRepo.Get();

            return(keep.ToList());
        }
예제 #8
0
 public IEnumerable <Keep> Get()
 {
     return(_keepsRepository.Get());
 }