예제 #1
0
        public bool GuardarDocumentoBaja()
        {
            HttpContext        Contex             = HttpContext.Current;
            HttpFileCollection httpFileCollection = Context.Request.Files;

            System.Collections.Specialized.NameValueCollection Formato = Context.Request.Form;
            try
            {
                int            AlumnoMovimientoId = int.Parse(Formato["AlumnoMovimientoId"]);
                HttpPostedFile httpFormato        = httpFileCollection["Documento"];
                Stream         strFormato         = httpFormato.InputStream;
                byte[]         FormatoFil         = Herramientas.ConvertidorT.ConvertirStream(strFormato, httpFormato.ContentLength);

                return(BLLAlumnoPortal.GuardarDocumentoBaja(AlumnoMovimientoId, FormatoFil));
            }
            catch
            {
                return(false);
            }
        }