public AthleteAccount GetAthleteProfile(object guid) { var fdb = new FilterDefinitionBuilder <AthleteAccount>(); var fd = fdb.Where(ap => ap.Id == 1); var athleteProfile = _apCollection.Find(fd).SingleOrDefault(); return(athleteProfile ?? AthleteAccount.GetNew()); }
public AthleteAccount CreateAthleteProfile(AthleteAccount athleteProfile) { _apCollection.InsertOne(athleteProfile); return(athleteProfile); }