internal IEnumerable <Keep> GetKeepsByVaultId(int vaultId, string userId) { // this would only return one // VaultKeep exists = _repo.GetById(vaultId, userId); // if (exists == null) { throw new Exception("Invalid Id or You Did Not Create This Vault"); } return(_repo.GetKeepsByVaultId(vaultId, userId)); }
internal IEnumerable <Keep> GetKeepsByVaultId(int vaultId, string userId) { var exists = _repo.GetKeepsByVaultId(vaultId, userId); if (exists == null) { throw new Exception("Invalid Id for this Vault"); } return(exists); }
public IEnumerable <Keep> GetKeepsByVaultId(int vaultId, string userId) { var exists = _repo.GetKeepsByVaultId(vaultId, userId); if (exists == null) { throw new Exception("THAT ID DOESNT EXIST"); } return(exists); }
public IEnumerable <Keep> GetKeepsByVaultId(int vaultId, string userId) { var exists = _repo.GetKeepsByVaultId(vaultId, userId); if (exists == null) { throw new Exception("This is not the droid you're looking for"); } return(exists); }
internal IEnumerable <Keep> GetKeepsByVaultId(string creatorId, int vaultId) { IEnumerable <Keep> original = _repo.GetKeepsByVaultId(vaultId); // if (original == null) // { // throw new Exception("Invalid ID"); // } return(original); }
internal IEnumerable <Keep> GetKeepsByVaultId(Vault vault) { var exists = _repo.GetKeepsByVaultId(vault); // if (exists == null) // { // throw new Exception("This is not the VaultKeep you are looking for"); // } // else if (exists.UserId != userId) // { // throw new Exception("Get yer own VaultKeep ya ninnie!"); // } return(exists); }
internal IEnumerable <VaultKeepViewModel> GetKeepsByVaultId(int vaultId, string userId) { return(_repo.GetKeepsByVaultId(vaultId, userId)); }
internal IEnumerable <Keep> GetByVaultId(int id, string userId) { IEnumerable <Keep> results = _repo.GetKeepsByVaultId(id, userId); return(results); }
public IEnumerable <VaultKeepViewModel> GetKeepsByVaultId(int VaultId, string UserId) { return(_repo.GetKeepsByVaultId(VaultId, UserId)); }
public IEnumerable <VaultKeepViewModel> GetKeepsByVaultId(int id) { return(_repo.GetKeepsByVaultId(id)); }
internal IEnumerable <Keep> GetKeepsByVaultId(int id) { return(_vkr.GetKeepsByVaultId(id)); }
public IEnumerable <Keep> GetKeepsByVaultId(int id, string userId) { return(_repo.GetKeepsByVaultId(id, userId)); }
//////////////////////////// GET KEEPS FOR A VAULT //////////////////////////////////////// public IEnumerable <VaultKeepVM> GetKeepsByVaultId(int vaultId, string userId) { return(_repo.GetKeepsByVaultId(vaultId, userId)); }
public IEnumerable <Keep> GetKeepsByVaultId(int vaultId) { return(_repo.GetKeepsByVaultId(vaultId)); }