public IActionResult EggCycle(EggCycle eggCycle) { this.dataService.DeleteEggCycle(eggCycle.Id); return(this.RedirectToAction("EggCycles", "Admin")); }
public IActionResult EggCycle(int id) { EggCycle model = this.dataService.GetObjectByPropertyValue <EggCycle>("Id", id); return(this.View(model)); }