public int GetMenuandfunctionCount(long MenuId, long SubMenuId, string functionname, string functionurl)
 {
     try
     {
         if (MenuId > 0 && SubMenuId > 0 && !string.IsNullOrEmpty(functionname) && !string.IsNullOrEmpty(functionurl))
         {
             return(_RolesDAL.GetMenufunctionscount(MenuId, SubMenuId, functionname, functionurl, Con));
         }
         else
         {
             return(0);
         }
     }
     catch (Exception Ex)
     {
         throw new FinstaAppException(Ex.ToString());
     }
 }