示例#1
0
        protected void btnAdd_ServerClick(object sender, EventArgs e)
        {
            _repository = new EmployeeRepository();

            ContextState contextStateOb = _repository.AddEducationalQualification(txtEducationalQualificationName.Value);

            if (contextStateOb.State)
            {
                Response.Write("Employee has been added  sucssefly.");
            }
            else
            {
                Response.Write(contextStateOb.ErrorMessage);
            }
        }