Пример #1
0
        public bool UpdatePositionMethod(PositionMethodModel model)
        {
            var entity = _positionMethodService.GetById(model.Code);

            entity = model.MapTo <PositionMethodModel, tb_PositionMethod>(entity);
            return(_positionMethodService.Update(entity));
        }
Пример #2
0
        public bool AddPositionMethod(PositionMethodModel model)
        {
            var entity = model.MapTo <tb_PositionMethod>();

            return(_positionMethodService.Insert(entity) > 0);
        }