public bool AddYieldMilkByDay(int idCow, double yieldMilk, DateTime date) { try { bool insert = milkService.AddYield(idCow, yieldMilk, date); predictionService.ForecastYieldCow(idCow); return(insert); } catch (Exception) { return(false); } }
public double getForecastCow(int idCow) { predictionService = new PredictionService(); double forecastValue = predictionService.ForecastYieldCow(idCow); return(forecastValue); }