internal IEnumerable <Keep> GetKeepsByCreatorId(string profileId) { return(_repo.GetByCreatorId(profileId)); }
internal IEnumerable <Keep> GetByCreatorId(string id) { return(_repo.GetByCreatorId(id)); }
internal IEnumerable <ViewModelKeep> GetAllByCreatorId(string queryId, string userId) { return(_repo.GetByCreatorId(queryId)); }
// internal Keep Edit(Keep keep) // { // Keep keepCheck = _repo.GetById(keep.Id); // if (keepCheck == null) { throw new Exception("Invalid Id / No longer exists"); } // if (keepCheck.CreatorId == keep.CreatorId) // { // Keep updatedKeep = _repo.Update(keep); // return _repo.GetById(updatedKeep.Id); // } // else // { // throw new Exception("Invalid Id / Access Denied"); // } // } internal IEnumerable <Keep> GetByCreatorId(string creatorId) { return(_repo.GetByCreatorId(creatorId).ToList()); }