Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }