// GET: Crear2/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            try
            {
                if (id == null)
                {
                    return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
                }
                Pregunta pregunta = await repositorio.GetById(id);

                if (pregunta == null)
                {
                    return(HttpNotFound());
                }
                return(View(pregunta));
            }catch (Exception ex)
            { throw new ControllerException("Error en task ActionResult Details", ex); }
        }
        public async Task create()

        {
            repositorio.Insert(pregunta);
            await repositorio.Save();

            var guardado = await repositorio.GetById(pregunta.Id);

            Assert.IsNotNull(guardado);
        }