partial void DeleteStaff(Staff instance);
 partial void InsertStaff(Staff instance);
 partial void UpdateStaff(Staff instance);
        protected void LinkButton3_Click(object sender, EventArgs e)
        {
            TextBox tb_NewFIO = (TextBox)GridView1.FooterRow.FindControl("tb_NewFIO");
            DropDownList ddl_NewGender = (DropDownList)GridView1.FooterRow.FindControl("ddl_NewGender");
            TextBox tb_NewDate = (TextBox)GridView1.FooterRow.FindControl("tb_NewDate");
            TextBox tb_NewPassword = (TextBox)GridView1.FooterRow.FindControl("tb_NewPassword");
            TextBox tb_NewRole = (TextBox)GridView1.FooterRow.FindControl("tb_NewRole");
            DropDownList ddl_NewPost = (DropDownList)GridView1.FooterRow.FindControl("ddl_NewPost");

            var staff = new Staff();

            staff.FIO = tb_NewFIO.Text;
            staff.Gender = ddl_NewGender.SelectedValue;
            try
            {
                staff.BirthDate = Convert.ToDateTime(tb_NewDate.Text).Date;
            }
            catch (Exception exept)
            {
                Console.WriteLine("Error:  " + exept);
            }
            staff.Password = tb_NewPassword.Text;
            staff.Role = tb_NewRole.Text;
            staff.Post = ddl_NewPost.SelectedValue;

            _eJDataContext.Staff.InsertOnSubmit(staff);
            try
            {
                _eJDataContext.SubmitChanges();
            }
            catch
            {
                _eJDataContext.ChangeConflicts.ResolveAll(RefreshMode.KeepChanges);
                {
                    try
                    {
                        _eJDataContext.SubmitChanges();
                    }
                    catch (Exception exept)
                    {
                        Console.WriteLine("Error:  " + exept);
                    }
                }
            }

            FillCustomerInGrid();
        }