Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        internal Keep Get(int id)
        {
            Keep original = _repo.Get(id);

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

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

            return(keeps);
        }
Ejemplo n.º 7
0
        internal IEnumerable <Keep> GetAll()
        {
            IEnumerable <Keep> keep = _kRepo.Get();

            return(keep.ToList());
        }
Ejemplo n.º 8
0
 public IEnumerable <Keep> Get()
 {
     return(_keepsRepository.Get());
 }