public void AddFeedRatio(FeedingRatioView model)
        {
            using (var feedRatio = new FeedingRatioRepository())
            {
                //from ingredients
                double totalIngredientsMass = _ingredients.GetAll().Sum(x => Convert.ToDouble(x.IngredientMass));

                var feed = new FeedingRatio
                {
                    FeedingRatioId = model.FeedingRatioId,
                    ProductName = model.ProductName,
                    ProductMass = totalIngredientsMass.ToString(CultureInfo.InvariantCulture) + " Kg."
                };
                feedRatio.Insert(feed);
                DeleteAllIngredientsFromList();
            }
        }
 public void Insert(FeedingRatio model)
 {
     _feedingRatioRepository.Insert(model);
 }
 public void Update(FeedingRatio model)
 {
     _feedingRatioRepository.Update(model);
 }
 public void Delete(FeedingRatio model)
 {
     _feedingRatioRepository.Delete(model);
 }