Kyonax_app-web-ganadera/test/Juan_Diego/src/Predio/RegPredio.cshtml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Ganaderia.App.Dominio;
using Ganaderia.App.Persistencia;

namespace Ganaderia.App.Presentacion.Pages
{
    public class RegPredioModel : PageModel
    {
        private static IRepositoryRancher _repoRancher = new RepositoryRancher(new Persistencia.AppContext());
        public void OnGet()
        {
        }

        public void OnPostAdd(Farm farm)
        {
            _repoRancher.AddFarm(farm);
        }
    }
}
