public IQueryable<Adopter> UpdateAdopter(Adopter updatedAdopter, Adopter user) { if (updatedAdopter.FirstName != user.FirstName) { user.FirstName = updatedAdopter.FirstName; } if (updatedAdopter.LastName != user.LastName) { user.LastName = updatedAdopter.LastName; } if (updatedAdopter.Email != user.Email) { user.Email = updatedAdopter.Email; } if (updatedAdopter.ImageURL != user.ImageURL) { user.ImageURL = updatedAdopter.ImageURL; } this.adopters.SaveChanges(); return this.adopters .All() .Where(r => r.Id == updatedAdopter.Id); }
public void Delete(Adopter adopter) { db.Adopters.Remove(adopter); Save(); }
public void Insert(Adopter adotante) { db.Adopters.Add(adotante); Save(); }
UIElement LoadConfusionMatrix(List <string> analysisFilenames, Classifier classifier, Adopter adopter) { Traces traces = new Traces(analysisFilenames, classifier, adopter); InitProgressWindow(traces); ConfusionMatrixAggregatePanel confusionMatrixAggregatePanel = new ConfusionMatrixAggregatePanel(); if (traces.Count > 0) { confusionMatrixAggregatePanel.Load(traces); } return(confusionMatrixAggregatePanel); }
public void DisplayAdopterInformation(Adopter adopter) { }
internal void AddNewAdopter(Adopter newAdopter) { _context.Adopter.Add(newAdopter); MessageBox.Show($"Poprawnie dodałem osobe adoptującą: \n{newAdopter.Name} {newAdopter.Surname}"); _context.SaveChanges(); }