Example #1
0
        public bool IsValidAccessToEntity(int RoleId, string EntityName, string RelatedService)
        {
            using (AccessEntities mympo = new AccessEntities())
            {
                int objectresult = mympo.Right_EntityValidRole(RoleId, RelatedService, EntityName).FirstOrDefault().Value;
                int result       = objectresult.ToInt32();

                if (result <= 0)
                {
                    return(false);
                }
                return(true);
            }
        }