public void AddFeedingStock(FeedingStockView model)
        {
            using (var feedingStock = new FeedingStockRepository())
            {
                var feed = new FeedingStock
                {
                    FeedingStockId = model.FeedingStockId,
                    ItemName = model.ItemName,
                    ItemPrice = model.ItemPrice,
                    Mass = model.Mass,
                    DateOfPurchase = model.DateOfPurchase,
                    NumberOfItems = model.NumberOfItems,
                    ExpairyDate = model.ExpairyDate,

                    TotalPrice = model.NumberOfItems * model.ItemPrice,
                    TotalMass = model.NumberOfItems * model.Mass
                };
                feedingStock.Insert(feed);
            }
        }
 public void Update(FeedingStock model)
 {
     _feedingStockRepository.Update(model);
 }
 public void Insert(FeedingStock model)
 {
     _feedingStockRepository.Insert(model);
 }
 public void Delete(FeedingStock model)
 {
     _feedingStockRepository.Delete(model);
 }