public static bool CheckReportIsExist(Context ctx, BudgetReportEntity budgetReportEntity) { bool flag; IBudgetReportPlateService service = ServiceFactory.GetService <IBudgetReportPlateService>(ctx); try { flag = service.CheckReportIsExist(ctx, budgetReportEntity); } finally { ServiceFactory.CloseService(service); } return(flag); }