async void OnDeleteButtonClicked(object sender, EventArgs e)
        {
            Animal animal = (Animal)BindingContext;
            await manager.Delete(animal.id);

            //Cattle cattle = (Cattle)BindingContext;
            //await App.CattleDatabase.DeleteCattleAsync(cattle);
            await Navigation.PopModalAsync();

            instance = null;
        }
 public ActionResult Deleted(int id)
 {
     try
     {
         var animal = animalManager.GetById(id);
         animalManager.Delete(animal);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }