Ejemplo n.º 1
0
        public static bool Save(Preguntas model)
        {
            bool result;

            using (HelpDeskApfEntities context = new HelpDeskApfEntities())
            {
                try
                {
                    context.PREGUNTAS.Add(model.ToTable());
                    context.SaveChanges();
                    result = true;
                }
                catch (Exception)
                {
                    result = false;
                }
            }

            return(result);
        }