public AnimalsController(SheepSiteV2Context db) { this.db = db; if (this.db.Animals.Count() == 0) { this.db.Animals.Add(new Animal { Id = 1, sheepDOB = default(DateTime), sheepGender = "F" }); this.db.Animals.Add(new Animal { Id = 2, sheepDOB = default(DateTime), sheepGender = "M" }); this.db.SaveChanges(); } }
public VaccinesController(SheepSiteV2Context db) { this.db = db; }
public HomeController(SheepSiteV2Context db) { this.db = db; }
public PregnanciesController(SheepSiteV2Context db) { this.db = db; }
public AnimalsController(SheepSiteV2Context db) { this.db = db; }
public TreatmentsController(SheepSiteV2Context db) { this.db = db; }