public bool DeletePermission(Permission permission)
 {
     var predicateGroup = new PredicateGroup { Operator = GroupOperator.And, Predicates = new List<IPredicate>() };
     predicateGroup.Predicates.Add(Predicates.Field<Model.Entities.Permission>(f => f.Id, Operator.Eq, permission.Id));
     return SqlHelper.Delete<Model.Entities.Permission>(predicateGroup);
 }
        public bool UpdatePermission(Permission permission)
        {
            return SqlHelper.Update(permission);

        }
 public Permission GetPermission(Permission permission)
 {
     var predicateGroup = new PredicateGroup { Operator = GroupOperator.And, Predicates = new List<IPredicate>() };
     predicateGroup.Predicates.Add(Predicates.Field<Model.Entities.Permission>(f => f.LdapUserName, Operator.Eq, permission.LdapUserName));
     return SqlHelper.Find<Model.Entities.Permission>(predicateGroup);
 }
        public bool InsertPermission(Permission permission)
        {
            return SqlHelper.Insert(permission);

        }