/// <summary> /// addEmployeeDetail /// </summary> private void addEmployeeDetail() { employeeBL = new EmployeeBL(); Employee emp = GetEmployee(); int row = employeeBL.AddEmpDetails(emp); lblMsg.Text = (row > 0) ? "Record Added successfuly" : "Record not Added"; SessionManagement.SetUserSession(emp); Response.Redirect("~/MailDetailsForm.aspx"); }