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 bool AddYieldMilkByDay(int idCow, double yieldMilk) { milkService = new MilkCollectionService(); return(milkService.AddYield(idCow, yieldMilk)); }