Exemple #1
0
        protected void ProceedButton_Click(object sender, EventArgs e)
        {
            CountryEntity entity = new CountryEntity();
            entity.Title = TitleTextBox.Text;
            entity.Description = OtherInfoTextBox.Text;

            new CountryMapper().Insert(entity);
            Response.Redirect("List.aspx");
        }
Exemple #2
0
        protected void ProceedButton_Click(object sender, EventArgs e)
        {
            CountryEntity entity = new CountryEntity();
            entity.Id = Convert.ToInt32(Request.QueryString["CountryId"]);
            entity.Title = TitleTextBox.Text;
            entity.Description = OtherInfoTextBox.Text;
            entity.Status = StatusEnum.Active;

            new CountryMapper().Update(entity);

            Response.Redirect("List.aspx");
        }