public void CreateCommodity(CommodityViewModel commodity) { var commodityInsert = Mapper.Map <CommodityViewModel, Commodity_M>(commodity); _commodityRepository.Add(commodityInsert); SaveCommodity(); }