Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public Keep GetById(string userId, int id) { Keep foundKeep = _repo.GetById(id); if (foundKeep.IsPrivate) { Keep foundPrivateKeep = _repo.GetPrivateById(userId, id); if (foundPrivateKeep == null) { throw new Exception("Invalid User"); } return(foundPrivateKeep); } if (foundKeep == null) { throw new Exception("Invalid Keep Id"); } return(foundKeep); }