private int GetTotalCount() { OperationResult objOperationResult = new OperationResult(); string strFilterExpression = "i_IsDeleted=0"; if (Session["strFilterExpression"] != null) { var ss = Convert.ToString(Session["strFilterExpression"]); if (ss.Length > 0) { strFilterExpression += "&&" + ss; } } return(_objPacientBL.GetPacientes(ref objOperationResult, strFilterExpression)); }