Esempio n. 1
0
        public void InsertManagerShipmentTypesLang(ShipmentTypesLangViewModel model)
        {
            var item = Mapper.Map <Shipment_Types_Lang>(model);

            m_ConentContext.Shipment_Types_Lang.Add(item);
            m_ConentContext.SaveChanges();
        }
Esempio n. 2
0
        public void UpdateManagerShipmentTypesLang(ShipmentTypesLangViewModel model)
        {
            var query = from l in m_ConentContext.Shipment_Types_Lang
                        where l.Id == model.Id
                        select l;
            var item = query.FirstOrDefault();

            Mapper.Map(model, item);
            m_ConentContext.SaveChanges();
        }