public int AtualizarNorma(string norma, string nome) { int normaId = Convert.ToInt32(norma); DateTime data = DateTime.Now; int retorno; string autor = Session["EMAIL"].ToString(); string destino = "/Normas/"; HttpPostedFile file = this.UpdateUploadNorma.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(); retorno = ca.AtualizarNorma(normaId, data, autor); if (retorno == 1) { storeCarregaNormas.Reload(); } return(retorno); }