protected void btnEdit_Click(object sender, EventArgs e) { AlterNewsInDTO inDto = new AlterNewsInDTO(); inDto.Id = Request.QueryString["id"]; inDto.Type = (NewsType)int.Parse(drpType.SelectedValue); inDto.Title = txtTitle.Text.Trim(); inDto.Author = txtAuthor.Text.Trim(); inDto.Context = txtContext.Text.Trim(); var outDto = NewsService.AlterNews(inDto); if (!outDto.IsSucceed) { LogProxy.Error(outDto.ErrorMsg); } Response.Redirect("/index.aspx"); }