public ActionResult generarActaExcel(int idobjetoActa)
        {
            ActasProductosUsuarios objetoActaProductoUsuario = ActasDB.recuperarActasProductosUsuariosPorID(idobjetoActa);

            ActaExcel objetoActaExcel = new ActaExcel();



            return(View(objetoActaProductoUsuario));
        }
        }//GenerarActa

        public void generarActaArchivoExcel(int idobjetoActa)
        {
            ActasProductosUsuarios objetoActaProductoUsuario = ActasDB.recuperarActasProductosUsuariosPorID(idobjetoActa);

            ActaExcel objetoActaExcel = new ActaExcel();

            Response.ClearContent();
            Response.BinaryWrite(objetoActaExcel.GenerarExcelActas(objetoActaProductoUsuario));
            Response.AddHeader("content-disposition", "attachment; filename=NuevaActa" + objetoActaProductoUsuario.IdActasProductosUsuarios + ".xlsx");
            Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
            Response.Flush();
            Response.End();
        }
        public void generarArchivoActaEliminarExcelPorCustodio(List <Productos> listaProductos, string numeroIdentificacion)
        {
            Usuarios objetoUsuario = UsuariosDB.recuperarUsuarioPorCedula(numeroIdentificacion);

            ActaExcel objetoActaExcel = new ActaExcel();

            Response.ClearContent();
            Response.BinaryWrite(objetoActaExcel.GenerarExcelBienesPorCustodio(listaProductos, objetoUsuario));
            Response.AddHeader("content-disposition", "attachment; filename=Bienes_" + numeroIdentificacion + ".xlsx");
            Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
            Response.Flush();
            Response.End();
        }