예제 #1
0
        ///
        /// <param name="formVariable"></param>
        /// <param name="userId"></param>
        public int AddFormVariabel(FormVariable formVariable, int userId)
        {
            var formStorePo = Mapper.Map <FormVariable, FormVariablePO>(formVariable);

            Repository.Add(formStorePo, userId);
            return((int)formStorePo.VARIABLE_ID);
        }
예제 #2
0
        ///
        /// <param name="formVariable"></param>
        /// <param name="userId"></param>
        public void SaveFormVariable(FormVariable formVariable, int userId)
        {
            var formStorePo = Mapper.Map <FormVariable, FormVariablePO>(formVariable);

            Repository.Update(formStorePo, userId);
        }