示例#1
0
        public void CreateCommodity(CommodityViewModel commodity)
        {
            var commodityInsert = Mapper.Map <CommodityViewModel, Commodity_M>(commodity);

            _commodityRepository.Add(commodityInsert);
            SaveCommodity();
        }