public DataPermission GetDataPermission(long subjectId, long entityId, long dataId, RightType rightType) { return DataPermissionsRepo.Get(p => p.Subject.Id == subjectId && p.Entity.Id == entityId && p.DataId == dataId && p.RightType == rightType).FirstOrDefault(); }