Exemplo n.º 1
0
        public int SalvarNorma(string nome, int dpId)
        {
            int            retorno;
            string         autor    = TabPanel1.Title;
            string         destino  = "/Normas/";
            HttpPostedFile file     = this.UploadNorma.PostedFile; // or this.Request.Files[0]
            string         fileName = file.FileName;
            string         path     = Server.MapPath(null) + destino + nome + ".pdf";

            file.SaveAs(path);
            SGSIBusiness ca      = new SGSIBusiness();
            DateTime     criacao = DateTime.Now;

            retorno = ca.SalvarNorma(nome, dpId, path, criacao, autor);
            //storeCarregaNormas.Reload();
            return(retorno);
        }